Using Subversion with DropBox

岁酱吖の 提交于 2019-12-20 08:23:58

问题


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

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

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?

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).


References:

DropBox (file sync, sharing, and online backup)

Subversion (open source version control system)


回答1:


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

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




回答2:


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.

SVN works perfectly in a TrueCrypt disk.

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.

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

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




回答3:


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




回答4:


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




回答5:


You can simply exclude the .svn-Folder from Dropbox: (instructions for 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!




回答6:


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?




回答7:


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.

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.




回答8:


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...




回答9:


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.



来源:https://stackoverflow.com/questions/2099803/using-subversion-with-dropbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!