aboutsummaryrefslogtreecommitdiff
path: root/files/sync-media
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-18 02:32:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-18 02:32:06 -0300
commit04a6d260840dae2399e1df18a231929a63c1b807 (patch)
treea948905342872c3b6faf095d5ee458c724897def /files/sync-media
parent92f22f6fc38f30944064f37e0f31d147f50d05c7 (diff)
downloadpuppet-backup-04a6d260840dae2399e1df18a231929a63c1b807.tar.gz
puppet-backup-04a6d260840dae2399e1df18a231929a63c1b807.tar.bz2
Try to copy to a remote only if it was given in the command line
Diffstat (limited to 'files/sync-media')
-rw-r--r--files/sync-media2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/sync-media b/files/sync-media
index ec3a8e6..a9bd422 100644
--- a/files/sync-media
+++ b/files/sync-media
@@ -178,7 +178,7 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
rsync -av --delete $CACHE/$folder/ $VOLUME/$MEDIA/$folder/
fi
done
-else
+elif [ ! -z "$DISK" ]; then
# Try to copy to a remote
for folder in `ls $CACHE`; do
if [ -d "$CACHE/$folder/.git/annex" ]; then