I have a backup system based on
rsync --link-dest. I'm trying to optimize disk usage a bit more.
Once in a while, I delete large files in the source folder. What'd be an easy way to automatically search for these files so I can delete them in the backup (if I deem it appropriate) ?
Something like "find files in
/media/backup that are larger than 100MB and which aren't hardlinked to anything in
- There can be 10-20 backup folders in
/media/backup, named by date.
latestis a symlink to... you guessed it.
- Files are sometimes moved around and/or renamed, and hardlinks are re-created in thoses cases by occasional checks with
hardlink. So I'm assuming that the search must be done by inode, not by filename.
- I know that some tools are aware of hardlinks, like
du /media/backup/*will only report the extra spare used by each backup folder - but I don't know how to leverage this with