Skip to content

Instantly share code, notes, and snippets.

@tbnorth
Last active September 29, 2015 15:00
Show Gist options
  • Save tbnorth/f57422c627437f96edc2 to your computer and use it in GitHub Desktop.
Save tbnorth/f57422c627437f96edc2 to your computer and use it in GitHub Desktop.
Clean up "incremental" (--link-dest) rsync backups

Backups with rsync's --link-dest are great, they let you keep backup daily versions of files with instant file level access while being fast and relatively space efficient.

The code below prunes duplicates etc. from large collections of --link-dest based incremental backups when the overhead of the directory structure etc. starts to consume too much space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment