Results 1 to 4 of 4
Hi all,
I want to scp some files from one server to the other, but I need NOT to overwrite the existing files. Is there a way to do so? ...
- 03-14-2008 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 8
SCP and overwriting
Hi all,
I want to scp some files from one server to the other, but I need NOT to overwrite the existing files. Is there a way to do so? Some CLI file manager that could do it (afaik, Midnight Commander can't)?
I'm using this command on CentOS.
- 03-14-2008 #2
The easiest way would be to simply rename the files when copying them over...
Or, create a new directory to copy them over to.Code:scp original.file remote_server@address:/path/of/directory/to/copy/to/copy_of_original.file
Last edited by Dapper Dan; 03-14-2008 at 12:29 PM.
- 03-14-2008 #3Just Joined!
- Join Date
- Oct 2006
- Posts
- 8
No, I needed to copy a directory recursively, so this solution is not useful for me. But I have just found the 'rsync' command which does exactly what I wanted. Thanx, anyway
- 03-14-2008 #4


Reply With Quote
