I'm a bit confused about doing backups with rsync/rdiff-backup / rsnapshot via SSH.
I've been looking at utilities such as backupninja and rsnapshot. These are rsync / rdiff based backup systems, capable of being scheduled to do backups over SSH. Reading the manual pages, it seems to be leading me to believe it is only possible to configure these utilities to pull FROM the client TO the server, whereas I thought it was possible to schedule these to push TO the server FROM the client. Am I mistaken here?
Meaning:
I want to have my laptop running the rdiff-backup / rsnapshot utility via cron to back up to my home server.
- My laptop runs cron job nightly (if it's on home network) ... and connects via SSH to my home server, (because my server has the static IP address and not vice versa)
- Laptop pushes data to backup directory on server.
- If laptop is not on home network, it does not perform backup.
Am I doing this backwards?
...
UPDATE:
I have currently installed rsnapshot on the server machine, and gotten it running pulling backups manually from the laptop, but I still think this seems to make more sense to have the laptop push to the server, because it's only going to be connected at home intermittently.
Still waiting for a response on whether this is the proper way to be doing this, or whether the reverse order (server pulling from laptop) is appropriate method. Input please?
in short, yes, these tools can work for the purpose you want.
here's a great article on setting that up.
http://www.debian-administration.org/articles/351