]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Sync-media: getall config
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Oct 2015 14:35:53 +0000 (11:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Oct 2015 14:35:53 +0000 (11:35 -0300)
files/sync-media

index 6cdbc00e66799786c4d64593febc71165c5df480..6864e2bc0888f8a654b3e73f128b6896e9b59a29 100644 (file)
@@ -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