From 41e8dbdd5e050d0fe8248b463a7e7d85469bc5b7 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 3 Dec 2018 02:14:04 +0100 Subject: [PATCH] exclude Nextcloud-sync-dir --- homeload.sh | 4 ++-- homestore.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeload.sh b/homeload.sh index f3a3bf6..417ed39 100755 --- a/homeload.sh +++ b/homeload.sh @@ -13,11 +13,11 @@ sleep $SLEEPTIME if [[ "$1" == "CROSSFS" ]] ; then rsync -vapP --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ - --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ + --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' --exclude='/Nextcloud' \ "home.somenet.org:HOMESYNC_DATA/" "${HOME}/" else rsync -vapPx --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ - --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ + --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' --exclude='/Nextcloud' \ "home.somenet.org:HOMESYNC_DATA/" "${HOME}/" fi diff --git a/homestore.sh b/homestore.sh index 2ee2d0c..c597eae 100755 --- a/homestore.sh +++ b/homestore.sh @@ -12,11 +12,11 @@ fi sleep $SLEEPTIME if [[ "$1" == "CROSSFS" ]] ; then - rsync -vapP --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ - --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ + rsync -vapP --delete --delete-excluded --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ + --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' --exclude='/Nextcloud' \ "${HOME}/" "home.somenet.org:HOMESYNC_DATA/" else - rsync -vapPx --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ - --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ + rsync -vapPx --delete --delete-excluded --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ + --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' --exclude='/Nextcloud' \ "${HOME}/" "home.somenet.org:HOMESYNC_DATA/" fi -- 2.43.0