Topic "parallel file copy"

Author Message
bhadari

Guest


Hi Team,
I am using a winscp script to copy log file from multiple unix servers.

snippet:
Code:
option batch abort
option confirm off

open sftp://user:password@mysite1 -hostkey="xxx-xxx 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
cd /
cd /xxx/xxx
lcd c:\logs
option transfer binary
get SystemOut.log
close

open sftp://user:password@mysite2 -hostkey="xxx-xxx 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
cd /
cd /xxx/xxx
lcd c:\logs
option transfer binary
get SystemOut.log
close

---






But the log files are huge in size and it is taking very long time to copy 8 files from 8 servers.

Is there any way to copy all the files (which are located on different servers) parallely, instead of sequentially?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Separate your script into two and run them in parallel.
_________________
Martin Prikryl
bhadari

Guest


prikryl wrote:
Separate your script into two and run them in parallel.


Same was implemented. Thanks for the quick reply Smile
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