From 607c9495d750b2c27fb4a201bb1866cfe0e9b6e5 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Sun, 15 May 2022 09:53:36 +0200 Subject: [PATCH] sync.sh: Touch destination dir after copy --- bash/sync.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash/sync.sh b/bash/sync.sh index 2fd64bd..4bcdde4 100755 --- a/bash/sync.sh +++ b/bash/sync.sh @@ -592,6 +592,7 @@ EXIST="$DOIT test -e" MOVE="$DOIT mv" REMOVE="$DOIT rm -rf" COPYHARD="$DOIT rsync -ar" +TOUCH="$DOIT touch" # rotate files. arguments are a string and a number. For instance $1=weekly, # $2=3. @@ -692,6 +693,7 @@ while [[ ${TODO[0]} != "" ]]; do log -s "rsync error %d" "$status" exit 7 fi + $TOUCH "$tdest" aftersync # script to run after the sync else # non-daily case. status=0