Bitbucket backup all repositories – Bitbucket Backup Script

Issue

Bitbucket Backup All Repositories

  • How to Backup my entire bitbucket accounts to a local system.
  • Backup should be easily restorable to any git provider.
  • Restore should contain the branches, tags and commit history.
  • Bitbucket backup script

Solution

    • Please go the GitHub RepositoryΒ and Click Download as ZIP.
    • Read the repo information Β (readme) file for details on the setup.
    • Run it from any Local / Dedicated server connected to the internet and you are ready to go.
  • You can set it as a cronjob to execute on a daily basis. Note: Please note that this script is in Alpha stage. But still it will do the job.

What Now

  • You can simply create a backup retention with shell script or with your backup device. – You can use s3cmd command on the server to upload it to s3 of AWS
  • Upload to Dropbox with Dropbtobox CLI script

Restoring the Backup

0 0 votes
Article Rating
Subscribe
Notify of
guest
11 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Emepe
8 years ago

Works perfect, thank you.

Jobin Joseph
7 years ago
Reply to  Emepe

@edepe:disqus Thanks for trying this. πŸ™‚

Wojciech Programista
Wojciech Programista
8 years ago

Works for me. Thanks man!

Jobin Joseph
7 years ago

Thanks for testing it out πŸ™‚

Ruslan
Ruslan
6 years ago

Hi.
How should I modify script for using HTTPS instead SSH?

Yogesh
Yogesh
5 years ago

Hi Jobin,

First of all thanks for this.
I have some questions like..
1. Is that I need to provide the bitbucket server URL as a username?
2. Could you please show me how to configure the cron job for this so that it should take the backup of bitbucket server every night @3 AM.

Yogesh
Yogesh
5 years ago
Reply to  Jobin Joseph

Thanks for quick response.

I have the below cron job ..where should i need to configure this..
0 14 * * 1-5 (At 14:00 on every day-of-week from Monday through Friday)
as our bitbucket server was installed on Ubuntu.

11
0
Would love your thoughts, please comment.x
()
x
Scroll to Top