backup of team repositories

Would it be possible to get a backup of the bare mercurial and git repositories for a team? We would like to take a snapshot and archive this on tape.

4 answers

1 accepted

This widget could not be displayed.

is there some script that can do this for an entire team repository that's composed of both git and mercurial repositories? I can "git clone --mirror" for git, but what's the best command for mercurial? What about the wiki and the permissions defined on the repositories?

This widget could not be displayed.

The version of your repos we have on the server, is identical to what you get when you clone. So to backup your repos offline, really all you need to do is clone them.

This widget could not be displayed.
This widget could not be displayed.

Maybe, but I don't know of any. `git --mirror` is indeed all you need for your repo data. Mercurial is easier, as it has no remote/local ref distinction and so simply cloning is all you need. Wikis are just repos too, so the same thing applies. The issue tracker lives in the database. It can be exported and re-imported using the export button on the issue tracker's admin page. Other meta data, like the repo's user and group permissions cannot be exported. Same with pull request data.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,316 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you