added -u flag: matching files with newer timestamps at destination are skipped

This commit is contained in:
Michael Stumpf 2021-07-22 11:10:53 +02:00
parent 4a76b5440c
commit b78886a00b
1 changed files with 1 additions and 1 deletions

2
icp
View File

@ -23,7 +23,7 @@ EXIT_INVALID_PATH=3 # rsync: Errors selecting input/output files, dirs
# -remove trailing slash from directories
flag_recursive=0
flag_dryrun=0
rsync_opt=("-lpgoD")
rsync_opt=("-lpgoDu")
rsync_arg=()
for arg in "$@"
do