Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Needing only newer or modified files to be deployed rather than all of the files with ftp-deploy Edited

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

1 answer

1 vote

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

@Ryan Hinton ,

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. wink

Thank you for your feature request!

 

Cheers,
Oleksandr Kyrdan

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,851 views 68 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you