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

rsync-deploy copying 2 folders

When building, I get 2 distinct folders that I need to copy to the server environment. I need to copy them in specific places and I cannot copy the whole parent folder.

Is there a way to specify to copy 2 different folders to 2 different locations in rsync-deploy?

Or just invoke it 2 times?




1 answer

0 votes
Charlie Misonne Community Leader Jun 15, 2022

Hi @jurepetrovic 

Can you explain how this relates to Jira?

As for the rsync: are both folders in the same parent directory? And you want to copy only those 2 folders to a same parent directory on the target. Did I get that right?

It's probably easier to perform 2 separate rsync commands.
Or you could use the --include option and specify te folders you do want to sync . See the man page.
Something like: rsync --include='folder1' --include='folderB' <your other options>

Hello @Charlie Misonne

thanks for your answer. It does not relate, however, I did not find bitbucket related community :( Sorry.

No, they are not in the same parent folder.

I ended up using 2 rsync commands without "deployment" tag, so I could copy twice to the same staging server.

Thanks for the idea, appreciate it.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,642 views 37 46
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