iRename bak to repo in README - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit a8ed769271d099fc3a0dd4e85c867ec512aef97b /scm/dedup/commit/a8ed769271d099fc3a0dd4e85c867ec512aef97b.gph bitreich.org 70 1parent f08d3792bd0dc9154b8a0e09b339d9d80845b71f /scm/dedup/commit/f08d3792bd0dc9154b8a0e09b339d9d80845b71f.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Thu, 7 Mar 2019 17:20:44 +0000 Err bitreich.org 70 i Err bitreich.org 70 iRename bak to repo in README Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M README | 10 +++++----- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 5 insertions(+), 5 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/README b/README /scm/dedup/file/README.gph bitreich.org 70 i@@ -2,15 +2,15 @@ dedup is a simple data deduplication program. Err bitreich.org 70 i Err bitreich.org 70 i To use dedup you have to first initialize the repository. Err bitreich.org 70 i Err bitreich.org 70 i- dedup -r ~/bak -i Err bitreich.org 70 i+ dedup -r ~/repo -i Err bitreich.org 70 i Err bitreich.org 70 i dedup only handles a single file at a time, so using tar is advised. Err bitreich.org 70 i For example, to dedup a directory file you can invoke dedup as Err bitreich.org 70 i follows: Err bitreich.org 70 i Err bitreich.org 70 i- tar -c ~/dir | dedup -r ~/bak -m "$(date)" Err bitreich.org 70 i+ tar -c ~/dir | dedup -r ~/repo -m "$(date)" Err bitreich.org 70 i Err bitreich.org 70 i-This will create .{snapshots,store} files in the ~/bak Err bitreich.org 70 i+This will create .{snapshots,store} files in the ~/repo Err bitreich.org 70 i directory. The store file contains all the unique blocks. The Err bitreich.org 70 i snapshots file contains all the revisions of files that have been Err bitreich.org 70 i deduplicated. Each revision is identified by its SHA256 hash. The Err bitreich.org 70 i@@ -18,13 +18,13 @@ cache file is only used to speed up block hash comparison. Err bitreich.org 70 i Err bitreich.org 70 i To list all known revisions run: Err bitreich.org 70 i Err bitreich.org 70 i- dedup -r ~/bak -l Err bitreich.org 70 i+ dedup -r ~/repo -l Err bitreich.org 70 i Err bitreich.org 70 i You will get a list of hashes. Each hash corresponds to a single file Err bitreich.org 70 i (in this case, a tar archive). Err bitreich.org 70 i Err bitreich.org 70 i To extract a file from the deduplicated store run: Err bitreich.org 70 i Err bitreich.org 70 i- dedup -r ~/bak -e > dir.tar Err bitreich.org 70 i+ dedup -r ~/repo -e > dir.tar Err bitreich.org 70 i Err bitreich.org 70 i Dedup depends on liblz4 and openssl. Err bitreich.org 70 .