sync.sh: Touch destination dir after copy
This commit is contained in:
@@ -592,6 +592,7 @@ EXIST="$DOIT test -e"
|
|||||||
MOVE="$DOIT mv"
|
MOVE="$DOIT mv"
|
||||||
REMOVE="$DOIT rm -rf"
|
REMOVE="$DOIT rm -rf"
|
||||||
COPYHARD="$DOIT rsync -ar"
|
COPYHARD="$DOIT rsync -ar"
|
||||||
|
TOUCH="$DOIT touch"
|
||||||
|
|
||||||
# rotate files. arguments are a string and a number. For instance $1=weekly,
|
# rotate files. arguments are a string and a number. For instance $1=weekly,
|
||||||
# $2=3.
|
# $2=3.
|
||||||
@@ -692,6 +693,7 @@ while [[ ${TODO[0]} != "" ]]; do
|
|||||||
log -s "rsync error %d" "$status"
|
log -s "rsync error %d" "$status"
|
||||||
exit 7
|
exit 7
|
||||||
fi
|
fi
|
||||||
|
$TOUCH "$tdest"
|
||||||
aftersync # script to run after the sync
|
aftersync # script to run after the sync
|
||||||
else # non-daily case.
|
else # non-daily case.
|
||||||
status=0
|
status=0
|
||||||
|
Reference in New Issue
Block a user