Skip to content
A recursive file comparison and verification tool
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Backcheck - A recursive file comparison and verification tool


  java de.backcheck.Backcheck compare [OPTIONS] SRC DEST
  java de.backcheck.Backcheck record  [OPTIONS] SRC DEST
  java de.backcheck.Backcheck verify  [OPTIONS] SRC DEST


  If started with 'compare', Backcheck compares a SRC file with a DEST file.
  If SRC and DEST are both directories, Backcheck compares
  the files in these directories, recursively.

  If started with 'record', Backcheck traverses SRC, calculates
  each file's length and checksum, and writes them to DEST file.

  If started with 'verify', Backcheck loads lengths and checksums
  from SRC (a file created with 'record') and compares them
  with DEST, recursively.

  The record/verify mode can be used for taking a snapshot of an
  existing directory structure and later verify that the files in
  that directory structure did not change.
  You may find it useful for checking read-only archives.

  Backcheck returns the following exit codes:
    0  Success/No differences found
    1  One or more differences found
    2  Other error

  -v --verbose
    Verbose output

  --logfile <filename>
    Append log output to <filename>, in addition to stdout

  --maxdepth <maxdepth>
    Descend only <maxdepth> levels deep into directory structure
    (for 'compare' and 'record')

    Print this help page and exit

    Print version and exit


  java de.backcheck.Backcheck compare /foobar /backups/foobar
    Compares /foobar with /backups/foobar, recursively, and reports
    each difference

  java de.backcheck.Backcheck record /backups/archive /home/joe/digest
    Records the checksum of each file in /backups/archive and writes the
    results to /home/joe/digest

  java de.backcheck.Backcheck verify /home/joe/digest /backups/archive
    Verifies for each entry in /home/joe/digest that the same file
    exists in /backups/archive and has the same checksum

You can’t perform that action at this time.