Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

So it does work?
gdu

martin wrote:

OK, so what does actually happen when synchronization of the second directory starts?


it copies the files but it looks like pretty much slow
martin

OK, so what does actually happen when synchronization of the second directory starts?
gdu

I am trying to copy the application server logs from unix machine into our log share windows server. The application server logs will be at multiple locations and I would like to copy them into same folder at windows machine. As per this script it is "logs" folder. Please let me know
martin

Re: Multiple folder sync

Synchronizing two different remote directory against the same local one, does not make any sense. What are you actually trying to achieve?
gdu

Multiple folder sync

I am trying to do the multiple folder sync using winscp. My source machine is Unix machine and I did install WINSCP at windows server and syncing log folders from Unix machine to Windows machine. We wrote ASP.net scrip which will call this sync script. Following is my script and first folder sync looks good and second folder is not. Can some please help me the better way to do this?

option batch on
option confirm off
open sftp://sseftp@host -privatekey="C:\Program Files\WinSCP\hostpriv.ppk" -timeout=600
option transfer binary
synchronize local "C:\Inetpub\wwwroot\wiatlog\logs" /usr/pos/sma/wt/logs
synchronize local "C:\Inetpub\wwwroot\wiatlog\logs" /usr/pos/sma/wt/data/wt/logs
close
exit