Feel free to use or borrow ideas from Backup.rsync here .
I actually used rsync backups through Backup.rsync, but since then I switched to my backshift program because it deduplicates better (no more than O (length ^ 2) to store large, slowly growing files) and compresses chunks using xz . If you look at this, you will probably see that it inspired rsync -link-dest.
source share