Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ryan Hinton
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2021

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
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2021

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

Ryan Hinton
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2021

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

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2021

@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
AUG Leaders

Atlassian Community Events