xcode 在 DropBox 中使用 Subversion

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2099803/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:15:08  来源:igfitidea点击:

Using Subversion with DropBox

svnxcodebackupdropbox

提问by Mustafa

Is it a bad idea to use DropBox as a backup system for Subversion repositories?

使用 DropBox 作为 Subversion 存储库的备份系统是一个坏主意吗?

Has anyone tried using Subversion with an an online file sharing utility like DropBox? What's your experiences?

有没有人尝试过将 Subversion 与 DropBox 等在线文件共享实用程序一起使用?你有什么经验?

My concern is whether this will work - mainly because Subversion maintains locks and it's very specific about it. I'm not sure if DropBox and Subversion can both work together?

我担心这是否会奏效 - 主要是因为 Subversion 维护锁并且它非常具体。我不确定 DropBox 和 Subversion 是否可以一起工作?

p.s. I'm thinking of using this for my Xcode projects, and no, i don't want to use github because it's not free - you can't keep your repositories Private with the free account (and other reasons).

ps 我正在考虑将它用于我的 Xcode 项目,不,我不想使用 github,因为它不是免费的 - 您不能使用免费帐户(和其他原因)将您的存储库设为私有。



References:

参考:

DropBox(file sync, sharing, and online backup)

DropBox(文件同步、共享和在线备份)

Subversion(open source version control system)

Subversion(开源版本控制系统)

采纳答案by James Raybould

I've got Dropbox, SVN and Xcode working fine here, I've had no problems what so ever.

我的 Dropbox、SVN 和 Xcode 在这里运行良好,我从来没有遇到过任何问题。

You don't even need to be careful about which machine you commit/update from as Dropbox keeps EVERYTHING synchronised.

由于 Dropbox 会保持所有内容同步,因此您甚至无需注意从哪台机器提交/更新。

回答by dawez

My suggestion is to use dropbox together with an encryption tool such as TrueCrypt. In this way you would have a safe storage on the cloud.

我的建议是将 dropbox 与 TrueCrypt 等加密工具一起使用。通过这种方式,您将在云上拥有安全的存储空间。

SVN works perfectly in a TrueCrypt disk.

SVN 在 TrueCrypt 磁盘中完美运行。

If you need to access the repository at the same time on multiple location I would recommend of using a subversion host provider. DropBox can get confused if two persons are modifying the same file at once.

如果您需要在多个位置同时访问存储库,我建议您使用 subversion 主机提供商。如果两个人同时修改同一个文件,DropBox 可能会感到困惑。

http://wiki.dropbox.com/TipsAndTricks/IncreasePrivacyAndSafety

http://wiki.dropbox.com/TipsAndTricks/IncreasePrivacyAndSafety

http://www.randomwire.com/storing-sensitive-data-in-the-cloud

http://www.randomwire.com/storing-sensitive-data-in-the-cloud

回答by niutech

Why to use SVN inside Dropbox? Instead, you can use your own SVN server with Dropbox-like interface: EasySVNfrom Assembla or IQBox-SVN.

为什么要在 Dropbox 中使用 SVN?相反,你可以使用Dropbox的使用一样的接口你自己的SVN服务器:EasySVN从Assembla或IQBox-SVN

回答by Foyzul Karim

May be this will help you. I have put SVN Reposiroty inside of a Dropbox Folder. http://foyzulkarim.blogspot.com/2012/12/dropbox-as-svn-repository.html

可能这会帮助你。我已将 SVN Reposiroty 放在 Dropbox 文件夹中。http://foyzulkarim.blogspot.com/2012/12/dropbox-as-svn-repository.html

回答by Jannik Arndt

You can simply exclude the .svn-Folder from Dropbox: (instructions for Mac)

您可以简单地从 Dropbox 中排除 .svn-Folder :(Mac 说明)

  1. You need to see the .svn-Folder, so go into Terminal and execute

    defaults write com.apple.Finder AppleShowAllFiles YES
    killall Finder
    
  2. Go to your Folder an Copy the .svn-Folder somewhere else

  3. Go to your Dropbox-Preferences > Advanced > Selective Sync and deactivate to .svn-Folder

  4. The Folder should now be deleted from your HD and Dropbox, you can check that on the website.

  5. Put your copy of the .svn-Folder back into the directory. You should see a little gray sign like (-)

  6. Revert step 1 with

    defaults write com.apple.Finder AppleShowAllFiles NO
    killall Finder
    
  7. That's it!

  1. 你需要看到 .svn-Folder,所以进入终端并执行

    defaults write com.apple.Finder AppleShowAllFiles YES
    killall Finder
    
  2. 转到您的文件夹并将 .svn-Folder 复制到其他地方

  3. 转到您的 Dropbox-Preferences > Advanced > Selective Sync 并停用到 .svn-Folder

  4. 该文件夹现在应该从您的 HD 和 Dropbox 中删除,您可以在网站上查看。

  5. 将 .svn-Folder 的副本放回目录中。你应该看到一个像 (-) 这样的灰色小标志

  6. 还原第 1 步

    defaults write com.apple.Finder AppleShowAllFiles NO
    killall Finder
    
  7. 就是这样!

回答by Cooper.Wu

i got problems when use Dropbox to sync svn repository, once Dropbox failed to access one file, the file doesn't be synced again. then, the svn structure was been destroyed...

我在使用 Dropbox 同步 svn 存储库时遇到问题,一旦 Dropbox 无法访问一个文件,该文件就不会再次同步。然后,svn结构被破坏了......

回答by Neil Monroe

Depending on how many files you are syncing it may end up doing a lot of file transferring. (Remember, you only have 200MB on Dropbox without any additional storage bonuses on the free account.) This means all the .svn (or _svn) files will also be synced, in effect doubling the amount of files it needs to keep updated.

根据您同步的文件数量,它最终可能会进行大量文件传输。(请记住,您在 Dropbox 上只有 200MB,免费帐户没有任何额外的存储奖励。)这意味着所有 .svn(或 _svn)文件也将同步,实际上是需要保持更新的文件数量加倍。

If you don't need to move whole directories around in your tree once the initial sync is complete, then transfers should be respectable.

如果您不需要在初始同步完成后在树中移动整个目录,那么传输应该是可敬的。

I've tried this myself for some projects and it worked okay, but in the end I think the best way to use Subversion repositories and Dropbox together is to use them for deployment builds. I wouldn't just set Dropbox to sync with my working folder. Use Dropbox to sync up at the end of the day by copying in the working folder to the actual Dropbox folder at scheduled intervals, thereby limiting the amount of constant network traffic the former might incur.

我自己在一些项目中尝试过这个,它工作得很好,但最后我认为将 Subversion 存储库和 Dropbox 一起使用的最佳方法是将它们用于部署构建。我不会只是将 Dropbox 设置为与我的工作文件夹同步。使用 Dropbox 在一天结束时通过按计划的时间间隔将工作文件夹复制到实际的 Dropbox 文件夹来同步,从而限制前者可能产生的恒定网络流量。

回答by Sander Rijken

I think it will probably work out OK if you're not accessing the repository from different locations, and let is synchronize before using it. It doesn't seem like a very stable solution though.

我认为如果您不是从不同位置访问存储库,它可能会正常工作,并且在使用它之前进行同步。不过,这似乎不是一个非常稳定的解决方案。

Is there any reason you can't us a publicly available URL for your repository?

是否有任何理由不能为您的存储库提供公开可用的 URL?

回答by user2218052

See SVN Backups to Dropbox. This generates full or incremental dumps of the SVN repository and uploads the compressed result to Dropbox. The main advantage of this approach is that it does NOT use the Dropbox client software. The Dropbox client software synchronizes between your computer and the cloud, and a corrupted file would be synchronized. You can create a cronjob (or Windows scheduled task) to run this script every day/week/month/etc.

请参阅SVN 备份到 Dropbox。这会生成 SVN 存储库的完整或增量转储,并将压缩结果上传到 Dropbox。这种方法的主要优点是它不使用 Dropbox 客户端软件。Dropbox 客户端软件会在您的计算机和云之间进行同步,并且会同步损坏的文件。您可以创建一个 cronjob(或 Windows 计划任务)来每天/每周/每月/等运行此脚本。