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

0 votes
Accepted answer

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?

1 vote

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.

0 votes

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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

453 views 5 9
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