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

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

867-fujita May 26, 2021

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

0 votes
Raimundas Ra September 3, 2021

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

Atlassian Community Events