dedup

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

commit 2b088f26ee40608a5ba20edc9175595939cdfa44
parent 3e574bf2cbc84b64d2617353de8189eccd69022a
Author: sin <sin@2f30.org>
Date:   Wed, 21 Mar 2018 19:40:19 +0000

Add manpage

Diffstat:
MMakefile | 6+++++-
Adedup.1 | 34++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -1,9 +1,10 @@ VERSION = 0.0 PREFIX = /usr/local +MANPREFIX = $(PREFIX)/man SRC = dedup.c OBJ = dedup.o BIN = dedup -DISTFILES = $(SRC) LICENSE Makefile README arg.h tree.h +DISTFILES = $(SRC) LICENSE Makefile README arg.h dedup.1 tree.h CFLAGS = -g -Wall CPPFLAGS = -I/usr/local/include @@ -19,9 +20,12 @@ clean: install: all mkdir -p $(DESTDIR)$(PREFIX)/bin cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1 uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1 dist: mkdir -p $(BIN)-$(VERSION) diff --git a/dedup.1 b/dedup.1 @@ -0,0 +1,34 @@ +.Dd March 21, 2018 +.Dt DEDUP 1 +.Os +.Sh NAME +.Nm dedup +.Nd data deduplication program +.Sh SYNOPSIS +.Nm dedup +.Op Fl clv +.Op Fl e Ar id +.Op Fl r Ar root +.Op file +.Sh DESCRIPTION +.Nm +is a simple data deduplication program. It is designed to be +used in a pipeline with tar/gpg etc. +.Nm +only handles a single file at a time, so using tar is advised. +.Sh OPTIONS +.Bl -tag -width "-r root" +.It Fl c +Perform a consistency check on the deduplication storage. +.It Fl l +List revisions by hash. +.It Fl v +Enable verbose mode. +.It Fl e Ar id +Extract revision with the specified id. +.It Fl r Ar root +Set the root directory where the .cache, .index and .store +files will be created. +.El +.Sh AUTHORS +.An Dimitris Papastamos Aq Mt sin@2f30.org ,