mirror of https://github.com/Chizi123/Scripts.git

Joel Grunbaum
2020-03-31 5417a6adf25d0bd09efff3190a6f257d693d98dc
backup.sh
@@ -2,7 +2,7 @@
cd /home/joel/OneDrive
if [ $1 == "sync" ]; then
if [ "$1" = "sync" ]; then
   echo Syncing
   BACKUP_DIR="/backup/work/"
   echo OneDrive Personal
@@ -30,7 +30,7 @@
#echo "last - $LAST"
#echo "diff - $DIFF"
duplicacy prune -keep 1:7 -keep 7:30 -exclusive > /dev/null 2>&1
duplicacy prune -keep 7:30 -keep 1:7 -exclusive > /dev/null 2>&1
if [ -z "$DIFF" ]; then
   duplicacy prune -r $CURR -exclusive > /dev/null 2>&1