summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-02-20 14:48:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-02-20 14:48:09 -0400
commitdfe50d75ed11caef3fcc706ff3d9507516c2d994 (patch)
tree2251c707728c5b814d316e44e9eff0b714000512
parent518f5b76d0aeb59f817178c1a09ec8bde7a715a3 (diff)
update walkthrough
-rw-r--r--doc/bugs/numcopies_deprecated__44___but_still_in_walkthrough.mdwn2
-rw-r--r--doc/walkthrough/backups.mdwn10
2 files changed, 8 insertions, 4 deletions
diff --git a/doc/bugs/numcopies_deprecated__44___but_still_in_walkthrough.mdwn b/doc/bugs/numcopies_deprecated__44___but_still_in_walkthrough.mdwn
index 7d4044baf..12e2672f3 100644
--- a/doc/bugs/numcopies_deprecated__44___but_still_in_walkthrough.mdwn
+++ b/doc/bugs/numcopies_deprecated__44___but_still_in_walkthrough.mdwn
@@ -17,3 +17,5 @@ http://git-annex.branchable.com/walkthrough/backups/
# End of transcript or log.
"""]]
+
+> [[fixed|done]] --[[Joey]]
diff --git a/doc/walkthrough/backups.mdwn b/doc/walkthrough/backups.mdwn
index 9723022b4..b51a88794 100644
--- a/doc/walkthrough/backups.mdwn
+++ b/doc/walkthrough/backups.mdwn
@@ -1,15 +1,17 @@
git-annex can be configured to require more than one copy of a file exists,
-as a simple backup for your data. This is controlled by the "annex.numcopies"
-setting, which defaults to 1 copy. Let's change that to require 2 copies,
-and send a copy of every file to a USB drive.
+as a simple backup for your data. This is controlled by the
+numcopies setting, which defaults to 1 copy. Let's
+change that to require 2 copies, and send a copy of every file
+to a USB drive.
- # echo "* annex.numcopies=2" >> .gitattributes
+ # git annex numcopies 2
# git annex copy . --to usbdrive
Now when we try to `git annex drop` a file, it will verify that it
knows of 2 other repositories that have a copy before removing its
content from the current repository.
+The numcopies setting used above is the global default.
You can also vary the number of copies needed, depending on the file name.
So, if you want 3 copies of all your flac files, but only 1 copy of oggs: