1. Please, Log in to your main server with putty, so generate SSH key. Please, look at this.
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): [Enter]
Created directory ‘/root/.ssh’.
Enter passphrase (empty for no passphrase): [Enter]
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub. ßRemember This address.
The key fingerprint is:
The key’s randomart image is:
+–[ RSA 2048]—-+
| o . . |
| o + + |
| + E + . |
| * o S |
|.. = o o . |
|..* o . |
|o+ + |
Please, Copy your public Key from ssh-keygen process to your backup server.
root@server-gatotkaca-backup:/home# ssh-copy-id -i /root/.ssh/id_rsa.pub abu-nabiha@1 22.214.171.124
Now try logging into the machine, with “ssh ‘email@example.com′”, and check in:
to make sure we haven’t added extra keys that you weren’t expecting.
- After enter in your server backu. Then, exit. And please try again log in to your server backup. Ssh firstname.lastname@example.org. Note!. You will enter your server backup without password.
Using rsync for to backup your file from main server to backup server. Please, notice following commands.
rsync -avz -e ssh /home/file_upload/* email@example.com:/home/file_upload/
- Please check the backup result in your server backup with ls –a or et all command.
- To ease backup process you can schedule with crontab –e so that backup proses run automatically. */10 * * * * rsync -avz -e ssh /home/file_upload/* firstname.lastname@example.org:/home/file_upload/
- Restart your cron service with /etc/init.d/cron restart command