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.
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?
Using the "git clone --mirror" command is best for backups. More info here: http://stackoverflow.com/questions/4658451/can-a-local-git-clone-be-considered-a-complete-backup-of-the-repo-it-was-cloned
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.