Synchronize Files over SSH

Context
You would like to synchronize files over SSH without password. You could generate the SSH keypair and use “rsync” to make your backup on the network.

1. Generate the SSH keys

 # ssh-keygen -t rsa

2. Upload the SSH pub key to the remote server

 # scp ~/.ssh/id_rsa.pub htpc@192.168.1.69:.ssh/authorized_keys

3. Synchronize your files over SSH

# rsync -avzhe ssh --delete /home/ses htpc@192.168.1.69:/data/BACKUPS/ThinkPad-T60/

4. Schedule your backup with crontab

00 21 * * * /root/backup.sh