1. Christian Specht
  2. Bitbucket Backup


Bitbucket Backup /

Filename Size Date modified Message
60 B
45 B
1.1 KB
23 B
2.1 KB
252 B
1.7 KB

Bitbucket Backup

Bitbucket Backup is a backup tool which backups all your Bitbucket repositories to your local machine.

How does it work?

Bitbucket Backup uses the Bitbucket API to get a list of all your repositories.
Then, it uses Mercurial and/or Git (which need to be installed on your machine if you have at least one repository of the given type) to clone every repository into your local backup folder (or just pull the newest changes if it already is in your local backup folder).
It also checks for each repository, whether it has a wiki (which is a repository itself). If yes, that will be automatically cloned/pulled as well.

DISCLAIMER: Git support is still very unstable.
For now, it works on my machine with Git 1.7.7 (but not on another machine with Git v1.6.5.1, for example). It definitely needs improvement.

How to build

Just run build.bat in the main folder. This will create a new folder named release with the compiled exe.


Bitbucket Backup loads all important values (your Bitbucket username and password, and the backup folder on your local machine) from a config file.
Before you run Bitbucket Backup the first time, you need to edit BitbucketBackup.exe.config and provide your data.

Please note that Bitbucket Backup assumes that you have the Mercurial and Git executables in your %PATH% variable.
(depending on the version, Git may come with a git.exe AND a git.cmd - it doesn't matter which one is in the %PATH%, Bitbucket Backup will find both)


Bitbucket Backup makes use of the following open source projects:


Bitbucket Backup is licensed under the MIT License. See License.txt for details.