rsync -u option: update in dest only if recent

This commit is contained in:
notanamber 2021-08-17 15:38:49 +00:00
parent f40376d239
commit 6ca1dc19a7
1 changed files with 1 additions and 1 deletions

View File

@ -29,5 +29,5 @@ sync() {
# PUSH TO REMOTE - and PULL FROM REMOTE swapping `src` with `dest`
echo "executing rsync -aP --log-file=$LOGFILE -e ssh $otheropts $src $dest"
# NOTE REMOTEDIR ALREADY EXISTS IN DESTINATION
rsync -aP --log-file=$LOGFILE -e ssh $otheropts $src $dest
rsync -aPu --log-file=$LOGFILE -e ssh $otheropts $src $dest
}