From 5417a6adf25d0bd09efff3190a6f257d693d98dc Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Tue, 31 Mar 2020 02:40:32 +0000 Subject: [PATCH] Fixed prune order --- backup.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index e0995d2..da34d22 100755 --- a/backup.sh +++ b/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 -- Gitblit v1.9.3