Log in as root to the backup server: ssh root@backup1.webmagic.studio
Generate a new strong password. Note the password, you’ll need it in a moment. Now assign it to user “ai1wm” on the backup server: passwd ai1wm
Log in as root to the server containing the site that needs to be backed up and assume the site’s system user identity: su - userid
If it doesn’t exist yet, create directory ~/.ssh, and give it permissions 700: mkdir ~/.ssh && chmod 700 ~/.ssh
Create a new private/public key pair named after the site’s system user and the server name. Use the password created above as the passkey when prompted: ssh-keygen -b 4096 -f .ssh/userid.server -C userid@server.webmagic.studio
Give the new key pair to the backup server, using the password created earlier to gain access. ssh-copy-id -i .ssh/userid.server.pub ai1wm@backup1.webmagic.studio
Test the connection using the following command (not the one printed on the screen). Use the password created earlier as the passkey for authorizing the private key: ssh -i .ssh/userid.server ai1wm@backup1.webmagic.studio
Install AI1WM and setup automation
Login to the backend of the site needing backup. Install the “All-In-One WP Migration” plugin from wp.org, then upload install “All-In-One WP Migration FTP Extension”. Activate both and upgrade if necessary.
From the menu, select All-In-One WP Migration > FTP Settings.
Type: SFTP
Hostname: backup1.webmagic.studio
Authentication Type: Private key
Username: ai1wm
Private key file: the .ssh/userid.server file on the webserver, you’ll have to figure out how to get it on your workstation somehow.
Private key passphrase: the password created earlier.
Root directory: /backup
Port: 22
Click “Update”. The system will save the settings and attempt a test connection.
In the FTP backups section:
Backup time: Sometime around 07:00 AM UTC.
Check both notification options, and set email address to backups@webmagic.studio.