Alex Rivera | Logout

Fully backup a git repo?

Asked 2011-04-07T08:39:57.853
203

Is there a simple way to backup an entire git repo including all branches and tags?

Edit
Report

2 Answers

6

use git bundle, or clone

copying the git directory is not a good solution because it is not atomic. If you have a large repository that takes a long time to copy and someone pushes to your repository, it will affect your back up. Cloning or making a bundle will not have this problem.

answered 2013-04-11T03:54:51.203
-8

As far as i know you can just make a copy of the directory your repo is in, that's it!

cp -r project project-backup
answered 2011-04-07T08:42:22.753

Your Answer