Hello,

what are ways to copy files/folders from/to remote Linux server and prevent overwriting new files of same name by old files of same name.

I found scp can copy, but cant prevent new files being overwriten by older.

But rsync has option -u (update):
Code:
–update
Update files at the destination ONLY if the source copy has been modified more recently
so i can use?
rsync -au ?

copy to remote server
rsync -au /local/source/path/ "ssh -p sshport" remoteuser@remoteip:/remote/path/

copy from remote server
rsync -au "ssh -p sshport" remoteuser@remoteip:/remote/path/ /local/source/path/