Answers for "scp skip existing files"

1

scp skip existing files

find . -type f -exec chmod a-w '{}' \;

before running scp (it will complain and skip the existing files).
And change them back afterward ( chmod +w to get umask based value). If the files do not all have write permission according to your umask, you would somehow have to store the permissions so that you can restore them.
Posted by: Guest on March-03-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language