rotrep

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

What?

A tool to capture and later verify/report/update checksums.

The aim of this tool is not to replace tools like tripwire in a security context but rather to record checksums of files as part of a backup/replication strategy for long term storage.

Background?

I store my photos on a QNAP NAS at home. This QNAP replicates its data to itself, to another QNAP and eventually to a machine in another country.

The problem is should there be Bit Rot or corruption on the source QNAP within a month that rot will have spread to all corners of the storage strategy.

I need a way to detect and correct this rot whenever it happens, this tool lets me detect that allowing me to retrieve files from other copies to recover.

Usage?

First you have to capture checksums on all your files, do this the first time using the tool:

rotrep update --path /data

You'll now have .checksums.json files in every directory, you now have to go into a cycle of verify/update regularly:

rotrep verify --path /data

Should this report any issue, verify if this is expected changes to your files, if not restore from other backups.

You should also check the status of files on every one of your replicas regularly to ensure they are in a good state, this ensures that you'll always be able to recover files should the source fail or rot.

Finally update your checksums - this will add new files and update checksums of any changed files:

rotrep update --path /data

All commands take --verbose, --debug, --workers and other options, see --help.

Who?

R.I.Pienaar / www.devco.net / @ripienaar

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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