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

Pipeline RSYNC not recursing/overwriting

capsicumdreams 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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events