There was an error while loading. Please reload this page.
$ ssh-keygen -t rsa
$ ssh-copy-id username@backup_server
mysqldump -u user -ppassword pegr_db > /path/to/pegr_sync.sql rsync -avzhe 'ssh' /path/to/pegr_sync.sql username@backup_server:~ ssh username@backup_server 'mysql -u user -ppassword pegr_db < pegr_sync.sql' rsync -avz /path/to/files/ username@backup_server:/path/to/files
$ crontab -e
5 1 * * * bash /path/to/sync.sh >> /path/to/sync.log 2>&1
The above cron job will run the sync.sh script at 1:05 am every day.
Sorry, there was an error rendering this page.