Topic "Multiple folder sync"

Author Message
gdu

Guest


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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Synchronizing two different remote directory against the same local one, does not make any sense. What are you actually trying to achieve?
_________________
Martin Prikryl
gdu

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
OK, so what does actually happen when synchronization of the second directory starts?
_________________
Martin Prikryl
gdu

Guest


prikryl 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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
So it does work?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License