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

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
4,559,728
Community Members
 
Community Events
185
Community Groups

How I can backup all the repository bitbucket cloud of one of the team I have?

Bitbucket does backup but to add one more local backup I want to backup daily on an windows server locally,

I know I can do a clone by command line and a schedule tasks with powershell in windows that pull for all folder but I have 200 repository so i'm wondering if there is a way to clone all the repository at once.

I could also use a tool to do the dailybackup but I didn't find any so far.

Thanks for any suggestion

1 answer

1 vote
Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 01, 2018

If you are going to replicate the repositories to a separate server then a script is certainly a decent way to do this.

You can use curl to process the rest api and get a list of all repositories, this allows you to create a simple loop in a script to run through all the repositories.

ok, thanks i will take a look at the rest api.

Did you find the solution for this ?

Hi, I have follow the advice to do a script but with powershell and use bitbucket auth and app password to connect to the bitbucket api.

You can start by reading this documentation : 

https://developer.atlassian.com/cloud/bitbucket/oauth-2/

I have done a gist of my script but I'm just not sure how I did to get the first refresh token. I think I have done a connection to get my first token and I keep using the same token to refresh my token. 

The script does a clone if it's not already cloned, if it's already clone that it's pull the source code that new.

https://gist.github.com/jobou363/32e8d291336bf03ceb51f380e1b489ec

Hi Jonatan, it's interesting to see the way to back up the repos. However, the post was 5 years ago. Is there any new ways of backing up the cloud?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events