这样: / p>
- 您只有一个文件移动到备份服务器
- 您实际上可以使用此文件作为一个起源回购,你可以像普通的Git回购一样提取/推送数据。
您将为第一次备份创建一个完整的包:
$ git包创建/ tmp / foo-all --all
How to backup git server?
When git server is broken, How can I push my local repository to a new git server?
解决方案
You can use:
git bundle
That way:
- you have only one file to move to a backup server
- you actually can use this file as an "origin" repo from which you can pull/push data like a regular Git repo.
You will for the first backup create a full bundle:
$ git bundle create /tmp/foo-all --all
这篇关于如何备份git服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!