Hello,
I am attempting to use ftp-deploy:0.3.6 to deploy only the new or modified files to production. However, ftp-deploy is deploying every file to production, regardless of file size differences or timestamps. Is there a way I can reduce the unnecessary file promotions by filtering out unmodified files so that only modified files are deployed to production?
I have attempted to use flags from lftp as a similar idea by using "--only-newer" and "-n" as a shortcut, but neither of these flags worked.
Thank you for any input.
Regards,
Ryan
Hi @Ryan Hinton ,
Thank you for your question!
It's a good case for rsync-deploy pipe:
Rsync is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination.
script:
- pipe: atlassian/rsync-deploy:0.5.0
variables:
USER: 'ec2-user'
SERVER: '127.0.0.1'
REMOTE_PATH: '/var/www/build/'
LOCAL_PATH: 'build'
Cheers,
Oleksandr Kyrdan
Thank you for this, but after checking with my hosting company, SSH is not possible as my service is on a Shared Hosting service. It would be great if the options on atlassian/ftp-deploy would work according to lftp. It would solve this problem for many of us that use shared hosting with only FTP options and without having to have every file get uploaded. It seems like a win-win because it would lessen the bandwidth for Atlassian as well as speed up the process for us as users. Is it possible to put in a request for this?
Thank you for your time!
Ryan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We'll discuss and investigate this feature with a team and notify you.
Also, it would be great if you create a new suggestion request with type Suggestion and Component: Pipelines - Pipes. So, other people could vote for your feature too.
Thank you for your feature request!
Cheers,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.