Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

backup of team repositories

Robbin Bonthond
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2015

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
Answer accepted
Robbin Bonthond
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2015

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
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2015
1 vote
evzijst
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2015

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
evzijst
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2015

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
TAGS
AUG Leaders

Atlassian Community Events