From: Silvio Rhatto Date: Fri, 16 Oct 2015 14:35:53 +0000 (-0300) Subject: Sync-media: getall config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9ff446a0444b7769e0236af85a48fd5c3bc874d1;p=puppet-backup.git Sync-media: getall config --- diff --git a/files/sync-media b/files/sync-media index 6cdbc00..6864e2b 100644 --- a/files/sync-media +++ b/files/sync-media @@ -110,6 +110,11 @@ if [ -d "$CACHE" ]; then sync_media_add git annex sync + # Control whether the repository should have a copy of everything + if [ "`git -C $CACHE/$folder config sync-media.getall`" == "true" ]; then + git annex get . + fi + if [ "$FSCK" == "true" ]; then git annex fsck --fast fi