I have a build script that uses the standard windows Ftp.exe to transfer big files accross the globe each night. It takes ages!
Filezilla is much much faster, but it doesn't appear to be very scriptable.
Any suggestions?
|
|
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
|
You can use NcFtp it can run in windows. It implements a NcFtpPut and NcFtpGet that work great with scripts. |
|||
|
|
|
Would installing cygwin at your end be an option? Then you should be able to use bash and a (scriptable) unix FTP client from your Windows box. |
|||||
|
|
Any chance you can use scp instead of ftp? I've used the pscp utiltly in PuTTY and found it to be pretty scriptable. Putty also includes a sftp client, fwiw. |
|||
|
|
If full-blown Cygwin isn't an option, you might try the Windows version of cURL. |
|||
|
|
|
You may also want to try Script2Cloud from K2SXS. It supports four object-oriented scripting languages (C++, JavaScript, Pascal, Basic) and supports a variety of file transfer protocols including FTP(S), SFTP, WebDAV, and some cloud protocols like Azure and S3 in development. Here's the web page: http://www.k2sxs.com/script2cloud/ |
|||
|
|
|
at the risk of sounding like a linux zealot, can you switch to rsync? or if you're windows inclined robocopy? |
|||
|
|
you could use powershell:
|
||||
|
|
|
CoreFTP has a scripting module. We've used it to some success. Not great, but plenty OK. I second the cygwin idea. I run cygwin on all my servers (in large part due to my personal dependence on tail). http://support.microsoft.com/kb/96269 has some notes on scripting FTP in windows. Wget built for Windows (skpping cygwin.dll) http://pages.interlog.com/~tcharron/wgetwin.html |
|||
|
|
|
Ditch FTP and use Rsync (DeltaCopy) which copies only the changed files. If DeltaCopy doesn't do what you need -- Cygwin + Rsync + Bash will. I have also used ActiveState Perl and an FTP library for Perl before to do more complex FTP operations. |
|||
|
|
|
The basic You are comparing it with FileZilla performance.
I have not been able to locate a command-line (script-able) client that can be told to perform multi-part downloads. Maybe, if others answering here agree to these ideas, they might be able to suggest a suitable reference. I have always found NcFTP to be good for most purposes, and was expecting this support to be available there. The There is one ActiveState Python script I found in the process, Odd part is, the discussion on this script says FileZilla was not giving sufficient performance!
|
||||
|
|
|
WinSCP does both sFTP and FTP. Scripting is easy & well documented |
|||
|
|