commit 0b9b91faf2325a32e7eb1392373efd88a04b75fe
parent 5feac127c6cb72c380aa467241dffc2f299ce7de
Author: sin <sin@2f30.org>
Date: Fri, 3 May 2019 00:07:29 +0100
Update README
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README b/README
@@ -17,13 +17,13 @@ the repository. The archive directory contains the snapshots.
dedup only handles a single file at a time, so using tar is advised.
To deduplicate a directory tree invoke dup-pack(1) as follows:
- tar -c ~/dir | dup-pack -r repo foo
+ tar -cf - ~/dir | dup-pack -r repo foo
This will create a new snapshot called foo under repo/archive/.
To extract the snapshot:
- dup-unpack -r repo foo | tar -x
+ dup-unpack -r repo foo | tar -xf -
Encrypting a dedup repository
=============================
@@ -40,11 +40,11 @@ algorithm:
To create a snapshot named foo:
- tar -c ~/dir | dup-pack -k keyfile -r repo foo
+ tar -cf - ~/dir | dup-pack -k keyfile -r repo foo
To extract the snapshot:
- dup-unpack -k keyfile -r repo foo | tar -x
+ dup-unpack -k keyfile -r repo foo | tar -xf -
All tools understand the -k option when operating on an encrypted
dedup repository.