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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Rsync-deploy re-deploying all files

Edited

To whom it may concern,

 

Hoping someone can help me figure out what is wrong with my rsync-deploy pipeline. It seems to be re-deploying all code, rather than just the files that have changed.

 

pipelines:
branches:
master:
- step:
name: rsync
script:
- pipe: atlassian/rsync-deploy:0.8.1
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_HOST
REMOTE_PATH: $DEPLOY_PATH
LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/
EXTRA_ARGS: '-apuv -c --update ${BITBUCKET_CLONE_DIR}/ --exclude-from=deployment-exclude-list.txt'
- ssh $DEPLOY_USER@$DEPLOY_HOST "cd ${DEPLOY_PATH}/ && composer install && sudo service php8.1-fpm restart" 

 I've tried to force it to check the checksum, but every time master is pushed to/merged in to, all files are changed on the server (timestamp is updated for every file, not just the changed files)

Thanks,

Alex

2 answers

edit: put my reply in answer by mistake...can't delete an answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 24, 2023

Hi @alextcranglesim 

Thank you for your question!

Have you tried these tips?

 

Best regards,
Oleksandr Kyrdan

Hi,

--ignore-existing would skip all the files, because they exist on the server already

I want to only sync changed files in the latest change of master. The checksum of existing, non changed files shouldn't have changed as they haven't been edited.

But when rsync-deploy runs in docker container, all files are marked as changed for some reason, so the deploy pushes all files.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events