The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline RSYNC not recursing/overwriting

capsicumdreams
Contributor
June 5, 2022

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

 

script:
- pipe: atlassian/rsync-deploy:0.7.1
variables:
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 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

TAGS
AUG Leaders

Atlassian Community Events