How To remote backup with rsync

by Tweak on June 14, 2009
in Linux, Servers

This is probably the simply way to backup data to other server using a secure protocoal an minimum bandwidh.

Note:
BackupServer.com – Is the backup server
MainServer.com – Is the server you want to backup

  1. Login to the server you want to backup
  2. Creating a key with the ssh-keygen utility:
    ssh-keygen -t rsa -N '' (these are two single quotes)
  3. Copy RSA encryption key to the backup server:
    scp ~/.ssh/id_rsa.pub username@backupserver.com:keys/server1
    ssh username@backupserver.com mergekeys

Read more…