问题描述
我经常将笔记本电脑备份到外置硬盘。是rsyncing git repos在足够好的备份解决方案,或者是否有任何问题,这种方法? rsync
是一个很好的解决方案。在执行备份之前运行 git gc
和 git repack
(不带任何参数)可能是个好主意。这可能会显着减少文件数量,并增加下次数据不会发生太大变化的机会。也不会丢失任何数据。
请参阅,以便说明为什么使用git来做这件事不是一个好的解决方案。
I often backup my laptop to an external hard drive. Is rsyncing git repos over good enough backup solution or are there any problems with this method?
rsync
is a good solution for this. It may be a good idea to run git gc
and git repack
(neither with any arguments) before doing your backup; this may significantly reduce the number of files, and increase the chance of the data not changing too much by next time. Neither will lose any data.
See http://sethrobertson.github.com/GitBestPractices/#backups for a write-up of why doing this with git isn't such a good solution.
这篇关于Rsyncing git repo足够好的备份解决方案吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!