本文介绍了DropBox作为版本控制和异地备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在读完迈克尔·洛普(Michael Lopp)的书《 Being Geek》之后,我开始使用Dropbox作为在家用计算机和办公计算机之间同步文件的一种方式.太棒了,它确实使您轻松跟踪正在处理的文件的最新版本.

After reading Michael Lopp's book "Being Geek," I started using Dropbox as a means of synchronizing files between my home computer and work computer. It's been fantastic, it really makes it painless to keep track of the latest version of files you're working on.

我的问题与人们对该工具的使用经验有关,尤其是可能使用它开发大型项目的程序员.

My question has to do with people's experience with this tool, especially programmers who may have used it to develop larger projects.

现在,我看到了Dropbox的3种主要用途:

Right now, I see 3 main uses of Dropbox:

1. synchronize files between home and work computers
2. version control (you have to log into the dropbox site to access previous versions)
3. off-site backup

目前,我正在将其用作主要备份工具,但我不确定这是一个好主意.但是现在,我在每台计算机(家用笔记本电脑和工作计算机)上都检出"了整个项目的本地(工作)副本,此外,我的整个项目都保存在了保管箱站点上.因此,我在想,如果我的一台计算机或两台计算机都发生了任何事情,我仍然可以使用该异地备份,并且只需要重新安装Dropbox即可访问我的所有文件.

Right now I'm using it as my main backup tool, which I'm not sure is a good idea. But right now I have a local (working) copy of my entire project "checked out" on each computer (my home laptop and my work computer), and additionally, my entire project is kept on the dropbox site. So I'm thinking, if anything happens to one of my computers, or both, I'll still have that off-site backup available and I'll simply have to reinstall dropbox to access all my files.

有人有这样做的经验吗?有人使用保管箱进行过重要的文件恢复吗?还是被广泛使用?感谢您的提前反馈.

Does anyone have experience with doing this? Has anyone done a major file recovery using dropbox? Or is this even widely used? Thanks for your feedback in advance.

推荐答案

在VCS中对这些文件进行历史化处理时,使用Dropbox维护多个文件及其关联的元数据总是有些棘手,因为它可能损坏问题(如果存储库的那些元数据部分之一未正确同步,则可能会导致无法正常工作的存储库)

Using Dropbox to maintain several files and its associated metadata when those files are historized in a VCS is always a bit tricky because of potential corruption issue (if one of those metadata part of the repository isn't correctly synchronized, you can end up with a non_working repo)

这就是为什么我总是与DropBox一起使用的原因:

That is why I always use with DropBox:

  • DVCS(如Git):我可以直接在DropBox存储库中的工作树中工作,也可以在需要的地方在DropBox之外的其他任何地方克隆所述存储库,
  • 单个 捆绑文件 我可以随时将本地存储库中的更改推送到该存储库中,无论该存储库位于何处.

这样,在DropBox中唯一真正需要同步的文件是该唯一的捆绑文件(将一个裸仓库称为一个文件).

That way, the only file that really need to be in sync in DropBox is that unique bundle file (representing a bare repo as one file).

有关更多信息,请参见"使用DropBox进行Git ".

See "Git with DropBox" for more.

这篇关于DropBox作为版本控制和异地备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 21:46