Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Important data has to be backed up in professional environments and even at home where you have important photos, videos, documents, eMail etc which you don't want to loose. There exist a lot of tools on Linux (rsync, rsnapshot ...) to create backups. From time to time you should check whether the backup is identical with the original. It's uggly if you detect the backup is not complete when you actually need the backup.

Following tools exist to compare directories and to find missing directories and files:


diff -rq original/ backup/


cd original
rsync -rvnc --delete . backup # Without -c ony timestamps and filesizes are compared - no filecontents (much faster). --modify-window=1 should be used with FAT or NTFS filesystems


cd original
hashdeep -rlc md5 * > ~/checksums.txt
cd backup hashdeep -ravvl -k ~/checksums.txt *


How to compare the content of two or more directories automatically

File and directory comparison tool?


Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. All comments are reviewed manually and it usually takes one day until a comment will be published.
  2. Comments with string http are rejected with message You have no rights to use this tag.
  3. You have to wait at least one hour until you can post another comment.