Feature request: scp not overwriting existing files

Phil Karn karn at ka9q.ampr.org
Mon May 1 08:16:01 EST 2000


>I would like to have an option to have scp refrain from overwriting
>target files if they already exist. Default behavior needs to be

I agree, this would be useful.

As a workaround, you can run rsync on top of ssh instead of using scp.
rsync has all sorts of useful options, including --update, which inhibits
overwriting of newer files with the same name, and --backup, which
makes backup copies of overwritten files.

Phil






More information about the openssh-unix-dev mailing list