iExplain how to use encrypted repos 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 08da54bc98110a6bb2757e8aee340ad3e0704d91 /scm/dedup/commit/08da54bc98110a6bb2757e8aee340ad3e0704d91.gph bitreich.org 70 1parent f81b3debf25007a65bed7285027fe09a81dd5517 /scm/dedup/commit/f81b3debf25007a65bed7285027fe09a81dd5517.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Thu, 2 May 2019 15:59:45 +0100 Err bitreich.org 70 i Err bitreich.org 70 iExplain how to use encrypted repos in README Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M README | 24 ++++++++++++++++++++++++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 24 insertions(+), 0 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@@ -25,6 +25,30 @@ To extract a snapshot: Err bitreich.org 70 i Err bitreich.org 70 i dup-unpack -r repo foo > dir.tar Err bitreich.org 70 i Err bitreich.org 70 i+Encrypting a dedup repository Err bitreich.org 70 i+============================= Err bitreich.org 70 i+ Err bitreich.org 70 i+First a secret key has to be generated using dup-keygen(1). This is a Err bitreich.org 70 i+256-bit symmetric key. Err bitreich.org 70 i+ Err bitreich.org 70 i+ dup-keygen keyfile Err bitreich.org 70 i+ Err bitreich.org 70 i+Initialize the repo and select XChaCha20-Poly1305 as the encryption Err bitreich.org 70 i+algorithm: Err bitreich.org 70 i+ Err bitreich.org 70 i+ dup-init -E XChaCha20-Poly1305 repo Err bitreich.org 70 i+ Err bitreich.org 70 i+To create a snapshot: Err bitreich.org 70 i+ Err bitreich.org 70 i+ tar -c ~/dir | dup-pack -k keyfile -r repo foo Err bitreich.org 70 i+ Err bitreich.org 70 i+To extract a snapshot: Err bitreich.org 70 i+ Err bitreich.org 70 i+ dup-unpack -k keyfile -r repo foo > dir.tar Err bitreich.org 70 i+ Err bitreich.org 70 i+All tools understand the -k option when operating on an encrypted Err bitreich.org 70 i+dedup repository. Err bitreich.org 70 i+ Err bitreich.org 70 i Portability Err bitreich.org 70 i =========== Err bitreich.org 70 i Err bitreich.org 70 .