Add rsync backups with hardlinks for space savings. #243
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a modification to the backup scheme that I've been using on my server for some time. My .zip files, while not huge, were piling up and taking quite a lot of disk space, and it occurred to me that 90%+ of the data was probably unchanged each time, which is a big waste. Instead of using zip, this method just uses rsync to copy the directory structure over, with hardlinks to files that haven't changed since the last backup. This makes each backup larger than the .zip file if hardlinks are ignored, but the actual disk usage is vastly lower.
I made my change originally as a hack to 0.8.15, and it's been working for me for quite a while. When I decided to send you my changes, I forked the latest master and saw your addition of rdiff-backup. I still think my method has value, because it's compatible with WorldEdit snapshot restores, which I use a lot. For this pull request I've attempted to add it as an optional backup method the same way you did for rdiff-backup, but I haven't tested this version much.