1. Please, Log in to your main server with putty, so generate SSH key. Please, look at this.

root@server-gatotkaca-backup:/home# ssh-keygen

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:

95:a3:22:63:fd:91:80:b9:8e:a6:32:61:7b:9c:54:e5 root@server-gatotkaca-backup

The key’s randomart image is:

+–[ RSA 2048]—-+

| |

| o . . |

| o + + |

| + E + . |

| * o S |

|.. = o o . |

|..* o . |

|o+ + |

|o.. |


  1. 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

    abunabiha@’s password:

    Now try logging into the machine, with “ssh ‘abunabiha@′”, and check in:


    to make sure we haven’t added extra keys that you weren’t expecting.

  1. After enter in your server backu. Then, exit. And please try again log in to your server backup. Ssh abu-nabiha@ Note!. You will enter your server backup without password.
  2. Using rsync for to backup your file from main server to backup server. Please, notice following commands.

    rsync -avz -e ssh /home/file_upload/* abu-nabiha@

  3. Please check the backup result in your server backup with ls –a or et all command.
  4. To ease backup process you can schedule with crontab –e so that backup proses run automatically. */10 * * * * rsync -avz -e ssh /home/file_upload/* abu-nabiha@
  5. Restart your cron service with /etc/init.d/cron restart command