From 314a05153c07c409764712337c8071fa58005bff Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 5 Jan 2019 20:27:09 +0100 Subject: [PATCH] rewrite homeload to reflect homestore changes. --- homeload.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/homeload.sh b/homeload.sh index 417ed39..27811cf 100755 --- a/homeload.sh +++ b/homeload.sh @@ -3,21 +3,21 @@ SLEEPTIME=5 echo "Will sync ${HOME} FROM server in ${SLEEPTIME} sec..." -if [[ "$1" == "CROSSFS" ]] ; then - echo "CROSSFS sync enabled! This could be DANGEROUS!" -else - echo "CROSSFS sync disabled." -fi - -sleep $SLEEPTIME - -if [[ "$1" == "CROSSFS" ]] ; then +if [[ "$1" == "ALL" ]] ; then + echo "ALL enabled! This will sync almost all data. Also cross-fs!" + sleep $SLEEPTIME 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='/Nextcloud' \ + --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='/Nextcloud' \ + +elif [[ "$1" == "QUICK" ]] ; then + echo "QUICK sync: Will skip VMs." + sleep $SLEEPTIME + rsync -vapPx --delete --sparse --exclude='/.**' --exclude='/Downloads' --exclude='/VirtualBox VMs' \ + --exclude='/Nextcloud' \ "home.somenet.org:HOMESYNC_DATA/" "${HOME}/" +else + echo "Use ALL or QUICK! Doing nothing." + exit 1 fi -- 2.43.0