Forum Moderators: phranque
How would I go about getting everything set up, or at least where can I start learning about what needs to be done?
Thanks,
Matthew
depending on what you are allowed to do on your servers (shell commands, cron, have an rsyncd installed and running), you may look into rsync and a scenario like this:
The rsync could be scheduled by cron to run at fixed times daily to copy entire directories (and on further invocations keeping these directories in sync automatically by incremental transfers of new or changed files only -> runs fast and saves bandwidth).
If you do an automated export/mysqldump just minutes before the rsync schedule, that dump file would be included in the transfer, too.
On the 2nd server you could schedule some post processing to automatically import the mysql data.
The rsync needs a started server daemon on one side (the client on the other side can act both as sender or receiver). Additionally, since the rsync can run with ssh, all transfers would be secure.
Regards,
R.
That would give you realtime sql backups (as the sql database is likely be change more than the files) then i'd agree with the rsync for the files - although if they are rarely modified and the site is mainly stored in the database then it might be easier to do that manually when you update the files, depends how often they change.