dedup

data deduplication program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit 83276cee93b10e5def83fa4ea7400accb9272566
parent eee75520164b914f4db72937e055e8809c79b479
Author: sin <sin@2f30.org>
Date:   Fri, 22 Feb 2019 15:26:07 +0000

Replace .index with .snapshots in manpage and README

Diffstat:
MMakefile | 2+-
MREADME | 12++++++------
Mdedup.1 | 4++--
3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -22,7 +22,7 @@ LDLIBS = -lcrypto -llz4 all: $(BIN) -$(OBJ): arg.h config.h tree.h dedup.h +$(OBJ): arg.h config.h dedup.h tree.h clean: rm -f $(OBJ) $(BIN) $(BIN)-$(VERSION).tar.gz diff --git a/README b/README @@ -5,11 +5,11 @@ For example, to dedup a tar file you can invoke dedup as follows: tar -c ~/dir | dedup -r ~/bak -m "$(date)" -This will create .{cache,index,store} files in the ~/bak -directory. The store file contains all the unique blocks. The index -file contains all the revisions of files that have been deduplicated. -Each revision is identified by its SHA256 hash. The cache file is -only used to speed up block comparison. +This will create .{cache,snapshots,store} files in the ~/bak +directory. The store file contains all the unique blocks. The +snapshots file contains all the revisions of files that have been +deduplicated. Each revision is identified by its SHA256 hash. The +cache file is only used to speed up block comparison. To list all known revisions run: @@ -20,7 +20,7 @@ You will get a list of hashes. Each hash corresponds to a single file To extract a file from the deduplicated store run: - dedup -r ~/bak -e <hash> > bak.tar + dedup -r ~/bak -e <hash> > dir.tar Cheers, sin diff --git a/dedup.1 b/dedup.1 @@ -1,4 +1,4 @@ -.Dd Feb 17, 2019 +.Dd Feb 22, 2019 .Dt DEDUP 1 .Os .Sh NAME @@ -27,7 +27,7 @@ Enable verbose mode. .It Fl e Ar id Extract snapshot with the specified id. .It Fl r Ar root -Set the root directory where the .cache, .index and .store +Set the root directory where the .cache, .snapshots and .store files will be created. .It Fl m Ar message Attach a descriptive message to the snapshot.