www.yourhost.com - your go daddy web host (assuming it has ssh access)
username - your login name for ssh access to go daddy host
backuphost- a Linux machine with root access, at which you will be backing up your web site.
on backup host:
1. As root, generate new ssh key without passphrase using ssh-keygen command. Call it backup.dsa. (normally stored in /root/.ssh/backup.dsa)
2. Add the following lines to your /root/.ssh/config
3. Make sure you have empty mount point (mkdir /mnt)
1. Add contant of the file backup.dsa.pub (one you generated on backup host) to ~/.ssh/authorized_keys
Now we are all set. Let us try it:
First just try to see if your ssh works. As root issue the command:
It should let you in without password. If this does not work add -v flag to ssh command and proceed with regular troubleshooting of ssh public key authentication. Most likely you will need to fix permissions on ~/.ssh directory and its contents on the remote host.
Once this worked, you can mount remote filesytem:
sshfs www.yourhost.com: /mnt
And back it up:
rsync -az -qq /mnt/html/ ~/backups/www.yourhost.com
Do not forget to unmount when you done:
This is a quick and dirty solution. Most likely fusefs options could be tweaked to get even better performance. You can add these commands to script file in /etc/cron.weekly/ on backup host to implement automatic weekly backups.