Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,316
Community Members
 
Community Events
168
Community Groups

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

Atlassian Community Events