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

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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,040 views 1 5
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