Generates a key that I store on the backup server which allows me to copy files over without asking for a password

ssh-keygen -t rsa

# hit return three times

This copies the newly generated key to the backup server

ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.3.253

# enter your password for username on remote_host

This will be the cron commands that we run each week. This will backup freepbx and the phone config files

rsync -ave ssh /var/lib/asterisk/backups/ 192.168.3.253:/var/lib/asterisk/backups/

rsync -ave ssh /tftpboot/ 192.168.3.253:/tftpboot/

for Elastix run

rsync -ave ssh /var/www/backup/ 192.168.3.253:/var/www/backup/

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.