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

How I can deploy only commited files via bb.yml pipeline to droplet


It's possible to deploy only files which was changed? Cause I used scp pipe and rsync, seems at remote server it's overwriting files at every deploy?

Currently for php-fpm project to upload files using this one pipe, which seems faster than scp pipe of Bitbucket

name: deploy to staging
deployment: Staging
trigger: manual
- pipe: atlassian/rsync-deploy:0.4.4
REMOTE_PATH: '/var/www/html'


1 answer

1 accepted

0 votes
Answer accepted

@Raimundas Ra you may add a lot of different options, that rsync has,  through EXTRA_ARGS variable. In this case reading rsync man, you may need -t

In the section usage:

CWrsync -t *.c foo:src/

This would transfer all files matching the pattern *.c from the current directory to the directory src on the machine foo. If any of the files already exist on the remote system then the rsync remote-update protocol is used to update the file by sending only the differences. See the tech report for details.

That's why pass



- '--times'

Check this up with documentation and ensure you use rsync in the right way, you need

Regards, Galyna

Thank you for your help Galyna, but just would like to confirm that only this option with flag -c or --checksum working for me instead -t  or '--times'

But anyway thank you, u showed me the right way :) 



@Raimundas Ra yes, this is actually question to rsync manual, but this should work since ${BITBUCKET_CLONE_DIR} in extra args is understood as string and real value will be in the pipe:

`rsync .... -c --update my-current-cloned-dir my-path ...`


Also in extra args you can pass multiple options, once you need.

Regards, Galyna

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

111 views 2 4
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