commit ce576f067cf3b9e70d8b2b0528ab5862267b69ee
parent 08896428f4b524d7dde06da61bc345e6520cdccc
Author: Daniel Moch <daniel@danielmoch.com>
Date: Tue, 24 Sep 2019 17:54:47 -0400
cloudsync: prefer local files
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.local/lib/cron.avail/cloudsync.sh b/.local/lib/cron.avail/cloudsync.sh
@@ -80,14 +80,14 @@ then
rsync -aq $LOCAL_PHOTOS/$lastrun_year/$lastrun_month/* /mnt/nextcloud/Photos/$lastrun_year/$lastrun_month
fi
- # Rsync from WebDAV to ~/Documents/Mobile
- echo "Syncing mobile documents from WebDAV to $mobile_docs"
- rsync -aq /mnt/nextcloud/Documents/* "$mobile_docs"
-
# Rsync from ~/Documents/Mobile to WebDAV
echo "Syncing mobile documents from $mobile_docs to WebDAV"
rsync -aq "$mobile_docs"/* /mnt/nextcloud/Documents
+ # Rsync from WebDAV to ~/Documents/Mobile
+ echo "Syncing mobile documents from WebDAV to $mobile_docs"
+ rsync -aq /mnt/nextcloud/Documents/* "$mobile_docs"
+
# Finish by unmounting the WebDAV folder
echo "Unmounting $server_fqdn"
umount /mnt/nextcloud