aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/sync-media16
1 files changed, 16 insertions, 0 deletions
diff --git a/files/sync-media b/files/sync-media
index ea1c430..6aee95b 100644
--- a/files/sync-media
+++ b/files/sync-media
@@ -82,6 +82,10 @@ if [ -d "$CACHE" ]; then
# Add and update local repositories
for folder in `ls $CACHE`; do
if [ -d "$CACHE/$folder/.git/annex" ]; then
+ if [ "`git -C $CACHE/$folder config sync-media.skip`" == "true" ]; then
+ continue
+ fi
+
(
cd $CACHE/$folder
echo "Syncing $CACHE/$folder..."
@@ -114,6 +118,10 @@ if [ -d "$CACHE" ]; then
else
for folder in `ls $CACHE`; do
if [ -d "$CACHE/$folder/.git/annex" ]; then
+ if [ "`git -C $CACHE/$folder config sync-media.skip`" == "true" ]; then
+ continue
+ fi
+
if [ ! -d "$VOLUME/$MEDIA/$folder" ]; then
(
cd $VOLUME/$MEDIA
@@ -136,6 +144,10 @@ fi
if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
for folder in `ls $VOLUME/$MEDIA`; do
if [ -d "$VOLUME/$MEDIA/$folder/.git/annex" ]; then
+ if [ "`git -C $CACHE/$folder config sync-media.skip`" == "true" ]; then
+ continue
+ fi
+
(
cd $VOLUME/$MEDIA/$folder
echo "Syncing $VOLUME/$MEDIA/$folder..."
@@ -170,6 +182,10 @@ else
# Try to copy to a remote
for folder in `ls $CACHE`; do
if [ -d "$CACHE/$folder/.git/annex" ]; then
+ if [ "`git -C $CACHE/$folder config sync-media.skip`" == "true" ]; then
+ continue
+ fi
+
(
if git remote | grep -q "^$DISK$"; then
cd $CACHE/$folder