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

rsync-deploy : How to deploy only files that have changed?

My pipeline deploy all files. I want it to deploy only files that have changed. I added '-u' option in 'EXTRA_ARGS', but it didn't work. Here is my code.

- step:
name: Test Deploy
deployment: Test
script:
- pipe: atlassian/rsync-deploy:0.5.0
variables:
USER: $RSYNC_USER
SERVER: $RSYNC_SERVER
SSH_PORT: $RSYNC_SSH_PORT
REMOTE_PATH: '/home/myname/public_html/'
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/html/'
DEBUG: 'true'
DELETE_FLAG: 'false'
EXTRA_ARGS: '-uv --exclude=.htaccess --exclude=.htpasswd --exclude=.env'

Am I missing something?

1 answer

I resolved my issue with thesw flags -c (checksum) and --update

EXTRA_ARGS: '-c --update ${BITBUCKET_CLONE_DIR}/' 

Try maybe this one below

EXTRA_ARGS: '-uv -c ${BITBUCKET_CLONE_DIR}/html/ --exclude=.htaccess --exclude=.htpasswd --exclude=.env'

Suggest an answer

Log in or Sign up to answer
TAGS
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