Quantcast
Viewing all articles
Browse latest Browse all 2

Incremental compressed backup over ssh

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):

  1. Uncompress the destination
  2. rsync the differences from local to remote
  3. Compress the backup on the server's side.

What would be the best practice here?

Edit

I came across the notion of "Incremental Dumps". Seems like tar can be helpful here. Is this a way to go?


Viewing all articles
Browse latest Browse all 2

Trending Articles