rsync -u option: update in dest only if recent
This commit is contained in:
parent
f40376d239
commit
6ca1dc19a7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user