parallel file copy

Advertisement

bhadari
Guest

parallel file copy

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

snippet:
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?

Reply with quote

Advertisement

bhadari
Guest

Re: parallel file copy

martin wrote:

Separate your script into two and run them in parallel.

Same was implemented. Thanks for the quick reply :)

Reply with quote

Advertisement

You can post new topics in this forum