Newbie
Newbie

Reputation: 187

MSBUILD takes way too long to transfer files to FTP site

Been attempting to automate FTP transfers using MSBUILD community packs via CruiseControl. The data is just over a gig. It was taking 3 hours and still didn't finish the transfer! I had to kill it because it was taking so long. Any ideas on how to make this faster? I know it can go faster because FileZilla can transfer the whole thing in 45 minutes!

Here's the script:

<Target Name="FTPDeployTransfer">
    <FtpUploadDirectoryContent
  ServerHost="$(ftpHost)"
  Port="$(ftpPort)"
  Username="$(ftpUser)"
  Password="$(ftpPass)"
  LocalDirectory="Path to local"
  RemoteDirectory="path to remote directory"
  Recursive="true"
        />
  </Target>

Upvotes: 0

Views: 928

Answers (1)

Ash
Ash

Reputation: 1984

You have written that you used MSBuild community packs: was it MSBuild Community Tasks or MSBuild Extension Pack.

In MSBuild Extension Pack you can try FTP Task that handles uploading of files to FTP server.

If it is the task that you tried or this doesn't help you - it's possible to execute FileZilla from MSBuild via Exec Task so it handle transfer to FTP.

[EDIT]

Yes, you can also try WinSCP for FTP transfer take a look at this article: MSBuild and WinSCP.

You can find ideas on how to speed up your transfer.

Upvotes: 1

Related Questions