I'm about to remove an old backup directory, but before doing so I'd like to make sure that all these files exist in a newer directory.
Is there a tool for this? Or am I best off doing this "manually" using
md5sum, sorting, comparing, etc?
If I have the following directory listings
/path/to/old_backup/dir1/fileA /path/to/old_backup/dir1/fileB /path/to/old_backup/dir2/fileC
/path/to/new_backup/dir1/fileA /path/to/new_backup/dir2/fileB /path/to/new_backup/dir2/fileD
fileB exists in
fileA in its original directory, and
fileB has moved from
fileC on the other hand is missing in
fileD has been created. In this situation I'd like the output to be something like
fileC exists in old_backup, but not in new_backup.