I am using the scp command to copy some files to a remote pc, as you do with scp :)
I note that the default behaviour of an scp copy for files is to overwrite any existing files. Now I want to copy a folder so I do basically the same thing:
scp -r <source_path> user@myOtherPc:<dest_path>
Where the parts in <> are my folder paths. However when I run this I get the message "file exists". Is there a way around this? some sort of force over-write?
Thanks, Fodder
-v
. Also, are you using absolute or relative path on the destination side? I think if the destination folder already exists, it is going to create the source path inside the destination folder rather than overwrite (testdir/testdir
)