Thanks for replying. I just came back here to post my current solution which is quite similar... yes rsync is great (although difficult to get working) as it only does a backup of changed files! Seeing as there's so many image files in shopping carts and such it would be really bad for full backups every day.
If anyone knows how to backup the email accounts, aliases and anything else I need to do to backup Cpanel in addition to this I would be grateful.
So here's my current solution, using SSH and rsync.
I use a .cmd file on Windows PC with Windows based command scripts. This way I can then schedule in the file to run. So I called my file "backup.cmd". Or you can call it a .bat file.
The scripts I use basically first use SSH to run mysql dump to dump the database file, then use rsync to synchronise the files with the files on my PC.
So I installed SSH and rsync on my Windows PC, and then setup private and public keys so I dont need a password. Instructions for all this here: http://optics.ph.unimelb.edu.au/help...rsync_pc1.html
Then once rsync and ssh is installed on your PC you can run the file. After playing around with it for a while I got the following command lines working and placed them in the .cmd or .bat file:-
Code:
ssh -i private_key_file %CPANEL_USERNAME%@your_domain.com "mysqldump -u %CPANEL_DATABASE_USERNAME% --password="%CPANEL_DATABASE_PASSWORD%" %CPANEL_DATABASE% > %CPANEL_DATABASE%.sql"
rsync -avzp --stats --delete-before --force -e "ssh -i private_key_file" %CPANEL_USERNAME%@your_domain.com:/home/%CPANEL_USERNAME%/ /cygdrive/f/%CLIENT_DOMAIN_NAME%/
The text enclosed in % % are variables that can be set with SET %CPANEL_USERNAME%=cpanel_username or just insert your values here direct.
Be really careful with rsync though. Especially when using --delete commands, you may delete files on the server or your PC with incorrect use. So play around with a test account first.