You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.