From 6ca1dc19a71afe7e6af3481e438c1e4ea439d1aa Mon Sep 17 00:00:00 2001 From: notanamber Date: Tue, 17 Aug 2021 15:38:49 +0000 Subject: [PATCH] rsync -u option: update in dest only if recent --- .synccmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.synccmd.sh b/.synccmd.sh index ab08432..6b9b20c 100755 --- a/.synccmd.sh +++ b/.synccmd.sh @@ -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 }