Overwrite if newer : SCP folder transfer

Solution 1:

I think you have a lot of misguided thoughts here.

First... Winscp uses native ssh to copy files. It does nothing different than the linux command scp. There is no way scp will work... when winscp does not. winscp is a windows interface that uses a basic scp client to connect to a ssh server to copy files.

Second... In Linux-based OSes, there is no concept of a "C drive". You have the root (/) and directories under root. A block device is mounted to root, and various other block devices can be mounted to directories that fall under root.

The syntax for "scp" is as follows:

scp from_where to_where

Both the from and to can be local directories like /some/local/directory or a remote directory like [email protected]:/some/remote/directory

the -r just means to "recurse" directories. (copy everything from that directory and everything beneath it.)

in a windows environment with a "C drive" typically you'd use putty's pscp command and do something like this:

pscp -r c:\some\directory [email protected]:/some/path/to/where/you/want/it

Solution 2:

If your priority is to overwrite with newer copies, I recommend rsync.

cwRsync is a version you can use with Windows: http://www.rsync.net/resources/howto/windows_rsync.html