From b7e62790a4f00fe9f3dc899f2f1c7793772046b4 Mon Sep 17 00:00:00 2001 From: Someone Date: Thu, 28 Apr 2016 22:10:37 +0200 Subject: [PATCH] allow not syncing of VMs --- homeload.sh | 4 ++-- homestore.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeload.sh b/homeload.sh index 7658598..5f1ed28 100755 --- a/homeload.sh +++ b/homeload.sh @@ -12,11 +12,11 @@ fi sleep $SLEEPTIME if [[ "$1" == "CROSSFS" ]] ; then - rsync -aHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' \ + rsync -aHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ "homesync.somenet.org:HOMESYNC_DATA/" "${HOME}/" else - rsync -axHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' \ + rsync -axHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ "homesync.somenet.org:HOMESYNC_DATA/" "${HOME}/" fi diff --git a/homestore.sh b/homestore.sh index 0dd9977..34caf5b 100755 --- a/homestore.sh +++ b/homestore.sh @@ -12,11 +12,11 @@ fi sleep $SLEEPTIME if [[ "$1" == "CROSSFS" ]] ; then - rsync -aHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' \ + rsync -aHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ "${HOME}/" "homesync.somenet.org:HOMESYNC_DATA/" else - rsync -axHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' \ + rsync -axHAvpP --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs/*.nosync' \ --exclude='/sync.opera/cache/**' --exclude='/sync.opera/application_cache/**' --exclude='/sync.opera/icons/**' \ "${HOME}/" "homesync.somenet.org:HOMESYNC_DATA/" fi -- 2.43.0