brahe

command module
v0.0.0-...-021d90c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

Brahe

This is a really simple command-line app that I wrote to compare the contents of multiple supposedly equal directories. I have successfully used it to compare whole disks containing 100k+ files.

You define a source directory (the source of truth) and then any number of target directories. It will then make sure the directory/file hierarchy matches and file contents match based on BLAKE2b, which was chosen for its speed while still being cryptographically secure. Right now it works in haystack mode, which means it only checks if the target directories contain everything that the source contains. The target directories can also contain any number of other files and the program won't care.

Usage

brahe [options] [source] [target1] .. [targetN]

  -build-db
        Builds a hash database of all entries in [source] to [target1]
  -check-db
        Checks all files in [target1] .. [targetN] against the hash database in [source]
  -delete-dupes
        Deletes any duplicate files in [source].
  -depth int
        Specify how deep into the directory hierarchy to look into.
        Use 0 to check only immediate files/directories with no traversing.
        Use -1 for no limit. (default -1)
  -find-gaps pattern
        The pattern 'IMG_/4:14-155/.JPG' searches for gaps in sequence of IMG_0014.JPG .. IMG_0155.JPG.
        Pattern '/0:1-13/.txt' seeks 1.txt .. 13.txt.
  -no-data
        Don't compare the file contents.
  -system-names
        Also check system names like $RECYCLE.BIN;System Volume Information;found.000;Thumbs.db.

Project status

This project is not actively maintained, however feel free to send bug reports or pull requests.

About

© Copyright 2016 - 2020 Kaur Kuut

Licensed under the Apache 2.0 license

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL