I need to set up a backup server to pull data from on-site linux servers. The server will be running Ubuntu 16.04.
A requirement is to be able to access backups of files which have been subsequently deleted.
It needs to be reasonably, but not perfectly, space-efficient. i.e. storing historic backups of slow changing servers shouldn't use much more space than the full backup does.
The two choices I'm looking at are:
- Using rsync and hardlinks - https://earlruby.org/2013/05/creating-differential-backups-with-hard-links-and-rsync/
- Using rsync to a ZFS filesystem, and creating ZFS snapshots
Are there reasons to choose one over the other?
rsync
(plusrsnapshot
or something for backup depth) works regardless of whether you have ZFS presentsnapdir
is set tovisible
so that you can work with the.zfs/
subdir).zfs send
).