diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-16 11:35:53 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-16 11:35:53 -0300 |
commit | 9ff446a0444b7769e0236af85a48fd5c3bc874d1 (patch) | |
tree | 994f4928ed0dcfbf6405dfd9841d204d8615d1ac | |
parent | fda68481bfcb2119788006f47dc0dd3d096109f7 (diff) | |
download | puppet-backup-9ff446a0444b7769e0236af85a48fd5c3bc874d1.tar.gz puppet-backup-9ff446a0444b7769e0236af85a48fd5c3bc874d1.tar.bz2 |
Sync-media: getall config
-rw-r--r-- | files/sync-media | 5 |
1 files changed, 5 insertions, 0 deletions
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 |