4

pscp is a very handful tool if you want to upload files to another server using SSH.

The only problem is that it is not able to detect if the destination file is already updated (based on datetime). I don't want to upload the file again if the file was not changed.

Is there any alternative for pscp that has this feature?

I would prefer a solution that is able to use pageant for authentication.

sorin
  • 8,016
  • 24
  • 79
  • 103

2 Answers2

3

You can use WinSCP...

It has an option to sync remote directories: http://winscp.net/eng/docs/task_keep_up_to_date

You can run it as a service if you'd like, to automatically watch your directory...

It's also scriptable: http://winscp.net/eng/docs/scriptcommand_keepuptodate

2

It is a bit of a heavy solution but cygwin+rsync would work if you set the environment correctly.

I believe but that cwrsync may work, but I haven't tested it.

Zoredache
  • 130,897
  • 41
  • 276
  • 420
  • 1
    Thanks but I'm looking for just for better `scp` client not `rsync`. – sorin Mar 15 '10 at 14:20
  • 1
    Unfortunately you will probably be looking for a long time. I don't believe such a version of scp exists. – Zoredache Mar 15 '10 at 16:22
  • especially since rsync includes the ability to use ssh as a transport. – hometoast Jul 08 '10 at 17:43
  • rsync isn't present on every Windows platform, like it is on Linux, but a range of ssh/scp clients do exist for Windows and it would be useful to find an answer on the question itself, i.e. how to achieve this using scp command only – Mladen B. Nov 02 '19 at 20:05
  • @MladenB. I agree, but scp simply doesn't have that functionality. On the plus side every modern version of Windows 10, can run WSL instead instead of using something like cygwin, or something else. Getting an rsync client is pretty easy these days. – Zoredache Nov 03 '19 at 00:03