#sync the files rsync -avz -e ssh remoteuser@productionMachine: /var/www/siteToBackup/ /var/backups/siteToBackup #sync the database file. rsync -avz -e ssh remoteuser@productionMachine: /var/sqlBackups/database_name.sql /var/backups/siteToBackup/