Topic "Transfer multiple files with automation"

Author Message
john23
[View user's profile]
Donor
Joined: 2011-01-28
Posts: 1
I'm trying to keep a directory up-to-date on my server. For that every 10 minutes I have to transfer abut 380 files every 10 minutes (total size 65MB)

Now the problem is that with FTP (automation with keepuptodate script) it can transfer only one file at a time. Is there a way I can move more then one file at a time?

I have a 1Gbit server and home connection is about 20Mb but the transfer of each file happens only around 105KB.
Guest




john23 wrote:
I'm trying to keep a directory up-to-date on my server. For that every 10 minutes I have to transfer abut 380 files every 10 minutes (total size 65MB)

Now the problem is that with FTP (automation with keepuptodate script) it can transfer only one file at a time. Is there a way I can move more then one file at a time?

I have a 1Gbit server and home connection is about 20Mb but the transfer of each file happens only around 105KB.



.
Something like this would do it, modify for your purpose.

automate.bat
C:\"Program Files"\WinSCP\WinSCP.exe /script=putfiles
close
exit

putfiles
open sftp://logon:password@xxx.yyyy.com:port
option confirm off
option transfer binary
cd folder (remote folder)
lcd folder (local folder)
put -delete *.*

The above can be changed to get on the receiving side if you wish.
Just change put to get

.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
john23 wrote:
Is there a way I can move more then one file at a time?

Not using a single script. You can split your transfer into several batches and run them in parallel.
_________________
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