We have a slight problem with our backups. Our setup is as follows:
- We create a backup using the
rsync
command. - The backup uses the option
--link-dest
option, to create incremental backups with hardlinks to older backups, for all the files that have not changed.
All looks well, every file we have checked so far that hasn't changed since the last backup gets hardlinked correctly (same inode number as the file in the older backup).
However, the last two weeks there has been a massive increase in storage need on the backup server. We suspect that either somthing is going wrong in our backup process, or massive files have been added (and/or changed) by users on the normal server.
We want to check (some of) the files that have been changed since the last backup; this means checking all files in the same directory structure with different inodes (no hard links).
How to find these files?
(Ubuntu 12.04 LTS)
find . -links 1 -type f
. In future it might be a good idea to run rsync with-v --stats
and archive the logging file.