FTP - transfer checksum

kinliang's Avatar

kinliang

Aug 02, 2015 @ 01:22 PM

It will be great if the deployment will do checksum against previous transfer (same file) before begin the FTP file transfer. If same, then it will skip the transfer. With this, it can speed up the deployment, and save your server bandwidth (network+IO+processing power).

Of course this can be option that user can enable to "speed-up" the deployment or disable it for always replace.

  1. Support Staff 1 Posted by Feodor Fitsner on Aug 02, 2015 @ 06:04 PM

    Feodor Fitsner's Avatar

    Maybe you can use WinSCP instead of built-in FTP deployment. Looks like it can be installed with Chocolatey: https://chocolatey.org/packages/winscp

  2. 2 Posted by kinliang on Aug 03, 2015 @ 12:17 AM

    kinliang's Avatar

    Thanks for the response, currently
    I using your platform to CD, how do I install the Winscp to your platform?

  3. 3 Posted by kinliang on Aug 03, 2015 @ 01:46 AM

    kinliang's Avatar

    I have attached my setup on deployment, please advise how do I enable that?

  4. Support Staff 4 Posted by Feodor Fitsner on Aug 03, 2015 @ 01:58 AM

    Feodor Fitsner's Avatar

    It can be installed with the following command added to "Install" section:

    choco install winscp
    
  5. 5 Posted by kinliang on Aug 03, 2015 @ 03:08 AM

    kinliang's Avatar

    Thanks for the swift response,

    I just added it settings/environment -> Install script section.

    Do I need to do anything else?

  6. Support Staff 6 Posted by Feodor Fitsner on Aug 03, 2015 @ 03:12 AM

    Feodor Fitsner's Avatar

    The idea is to use your own deployment script instead of built-in AppVeyor provider. You should replace built-in FTP deployment method with your own command calling winscp command line. Sorry, I don't have a ready example, but I think it could be easily googled.

    Btw, why wouldn't just replace FTP with WebDeploy (if you control target server of course)? Web Deploy is way more effective in managing partial updates.

  7. 7 Posted by kinliang on Aug 03, 2015 @ 03:14 AM

    kinliang's Avatar

    The problem is the hosting that I using don't support WebDeploy :(, it only support FTP And for my case it will take more than one hour to complete transfer.

  8. 8 Posted by kinliang on Aug 05, 2015 @ 01:20 PM

    kinliang's Avatar

    I going to try, so I choose script over the provider?

  9. Support Staff 9 Posted by Feodor Fitsner on Aug 05, 2015 @ 03:05 PM

    Feodor Fitsner's Avatar

    Yes

    - Feodor

  10. 10 Posted by kinliang on Aug 06, 2015 @ 03:38 AM

    kinliang's Avatar

    Always thanks for the swift response, where can I get the list of "variable" and how do I know where the "artifcat" path saved and located? before I use command to extract it, upload it.

    http://www.appveyor.com/docs/environment-variables

  11. Support Staff 11 Posted by Feodor Fitsner on Aug 06, 2015 @ 04:20 AM

    Feodor Fitsner's Avatar

    There is $artifacts hashtable in PowerShell context: http://www.appveyor.com/docs/packaging-artifacts#getting-informatio...

    You can take the first artifact's path as the following:

    deploy_script:
    - ps: '$env:ApplicationPath=$artifacts.values[0].path'
    - your command with %ApplicationPath%
    
  12. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 01:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac