Rsyncing git repo足够好的备份解决方案吗? [英] Is Rsyncing git repo good enough backup solution?

查看:184
本文介绍了Rsyncing git repo足够好的备份解决方案吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常将笔记本电脑备份到外置硬盘。是rsyncing git repos在足够好的备份解决方案,或者是否有任何问题,这种方法?

解决方案

rsync 是一个很好的解决方案。在执行备份之前运行 git gc git repack (不带任何参数)可能是个好主意。这可能会显着减少文件数量,并增加下次数据不会发生太大变化的机会。也不会丢失任何数据。



请参阅 http://sethrobertson.github .com / GitBestPractices /#备份,以便说明为什么使用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足够好的备份解决方案吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆