So far I'm backing up my stuff using:
rsync -avz --delete /Local/Location/of/data/ -e ssh username@hostname:/Remote/Location/of/backup
The local side is running Mac OS, and the server side is running Linux. I cannot change this setting.
This works great (as far as I can tell) and transfers only the differences since the last backup, as well as preserving all the permissions etc. However, this approach has one drawback, namely the backup on the server's side is not compressed (and therefore I get warnings). How can I add some compression of the process' end result?
The naive approach would be to (given the destination is compressed):
- Uncompress the destination
- rsync the differences from local to remote
- Compress the backup on the server's side.
What would be the best practice here?
I came across the notion of "Incremental Dumps". Seems like
tar can be helpful here. Is this a way to go?