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
Community Members
Community Events
Community Groups

Pipeline RSYNC not recursing/overwriting

I have this step, which seems to work (at least it doesn't fail).

But the files inside a subdirectory are not getting updated/overwritten


- pipe: atlassian/rsync-deploy:0.7.1
USER: 'root'
SERVER: 'someserver'
REMOTE_PATH: '/root/sq'
LOCAL_PATH: './Server/Source'
EXTRA_ARGS: '-rzvv --delete --exclude={"*-lock.json",".env",".idea","node_modules","bin"}'
DEBUG: 'true'
Is there something wrong with the arguments?

1 answer

0 votes
Patrik S Atlassian Team Jun 07, 2022

Hello @capsicumdreams ,

Thank you for reaching out to Atlassian Community.

Rsync by default checks the modification time and size of the file to decide whether it should be updated or not, and sometimes this can make it wrongly skip some files. In this case I would suggest trying to use the --checksum flag and test if the files are correctly transferred, as with this flag rsync will compare the checksum of the files to decide if they should be updated or not.

If that does not work, I see you are already printing verbose logs in your rsync command, so are the files you were expecting to see in the destination being listed by rsync in the logs? Could you provide us with the path of one of those files that are not being transferred? 

Thank you, @capsicumdreams .

Kind regards,

Patrik S

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,095 views 2 9
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