`
cloudmail
  • 浏览: 271438 次
  • 来自: 广州
社区版块
存档分类
最新评论

【转】How To Use Dropbox As An SVN Repository

 
阅读更多

How To Use Dropbox As An SVN Repository

 

dropbox-subversion-svnRecently, the popular Cloud based startup Dropbox is getting lot of attention on Internet. It is a free file synchronization/backup service where you can backup, save and share files. Dropbox gives 2 GB of free space to every user where one can save / backup their files.

One of the interesting usage of Dropbox can be to use it as Subversion Repository to store your projects. We can create a local SVN repository on Dropbox which can be synchronized on Cloud by Dropbox. You can checkout this repository and add your projects / files into it. This way you can access your project anywhere. Also it is possible to share your repository with other users if you want to. Simply by sharing Dropbox folder where you have stored subversion repository can enables you to share it with other users.

Here is an example of hosting a local SVN repository on Dropbox.

Step 1: Create Dropbox repository

cd ~Dropbox
mkdir SVNRepository
cd SVNRepository

If you are using subversion command line utilities in Windows or using Unix box, we can create a new subversion repository by using svnadmin.

svnadmin create .

If you are using TortoiseSVN client then you may want to create repository using following:

Right-click on the newly created folder SVNRepository and select TortoiseSVN → Create Repository here….

We just created a Subversion repository on top of Dropbox folder. Don’t edit those files yourself!!. If you get any errors make sure that the folder is empty and not write protected.

Step 2: Checkout Dropbox repository

Our Dropbox repository is ready and we can do checkin / checkout in this now. Before we add any project / files in this repository, we need to make sure we add proper directory structure in this SVN repository. It is a good practice to divide an SVN repositories in three directory: trunk, branches and tags.

First create a working folder where you want to checkout your SVN repository.

mkdir ~MyWorkspace
cd MyWorkspace
svn checkout file:///~Dropbox/SVNRepository

This will checkout the newly created repository in folder MyWorkspace.

Now create 3 directories in MyWorkspace: trunk, branches and tags and commit the change back to repository.

mkdir trunk
mkdir branches
mkdir tags
svn commit -m "Initial setup (committing trunk, branches, tags)"

Step 3: Checkout Trunk of Dropbox SVN repository

We are done with the setup.. Just checkout the Trunk of this newly created SVN repository and start committing your changes.

svn checkout file:///~Dropbox/SVNRepository/trunk

That’s it. Now you can checkout the SVN repository “file:///~Dropbox/SVNRepository/trunk” anywhere and commit your changes to it. Ofcourse this is now hosted on Dropbox so you can easily synchronize your changes between different computers. You can also share this repository with other Dropbox users letting them SVN your repository access.

 

 

http://viralpatel.net/blogs/dropbox-svn-subversion-repository/

 

分享到:
评论

相关推荐

    Laravel开发-dropbox

    use Spatie\Dropbox\Facades\Dropbox; Dropbox::upload('path/to/local/file', '/path/in/dropbox'); ``` 或者下载文件: ```php $contents = Dropbox::download('/path/in/dropbox'); file_put_contents('path/...

    Android代码-dropbox-sdk-java

    Dropbox Core SDK for Java 6 A Java library to access Dropbox's HTTP-based Core API v2. This SDK also supports the older Core API v1, but that support will be removed at some point. License: MIT ...

    Dropbox-Go, 转到Dropbox的库.zip

    Dropbox-Go, 转到Dropbox的库 dropbox转到Dropbox的库设置 $ go get -u github.com/scottferg/Dropbox-Go/dropbox身份验证Dropbox API使用OAuth作为认证机制。 可以通

    Dropbox 1.3.13.exe Dropbox测试版

    Dropbox 1.3.13.exe Dropbox测试

    change-svn-wc-format

    SVN:This client is too old to work with working copy…解决办法 .txt 1、cmd进入py文件目录下执行py文件加入--help查看帮助,命令C:\change-svn-wc-format>change-svn-wc-format.py --help 2、cmd执行下面命令...

    Laravel开发-laravel-dropbox

    'path/to/file/in/dropbox', // 目标路径 $request->file('file')->getRealPath() // 本地文件路径 ); return response()->json(['message' => '文件已成功上传到Dropbox']); } ``` 此外,Laravel-Dropbox还...

    Web Development Recipes 2nd Edition pdf

    use Git and Dropbox to collaborate; configure and secure the Apache web server; use virtualization to set up your own servers automatically; and much more. Whether you're new to front-end ...

    Android App for uploading to dropbox

    - **Android--10-steps-to-integrate-dropbox-api--demo-project-master**:文件名可能表明这是一个示例项目,遵循10个步骤完成Dropbox API的集成。源代码可能包含版本控制信息,如Git提交历史,帮助开发者理解代码...

    Dropbox(多宝箱)在线+离线安装包

    Dropbox(多宝箱) 成立于2007年,提供免费和收费服务,在不同操作系统下有客户端软件,并且有网页客户端,能够将存储在本地的文件自动同步到云端服务器保存。因为云端服务的特性,Dropbox的存储成本将被无限摊薄。 ...

    Dropbox PDF

    ### Dropbox PDF:全面解析Dropbox的核心功能与使用技巧 #### 一、Dropbox简介 **Dropbox**是一款免费的云存储服务,它可以帮助用户轻松地将所有照片、文档和视频等文件随身携带。无论您是在学校、办公室还是家中...

    Backup-to-dropbox:该工具可帮助您将文件备份到 Dropbox 并能够恢复它

    本文将详细介绍“Backup-to-dropbox”工具,这是一个利用Python编写的实用程序,它允许用户轻松地将文件备份到Dropbox云存储服务,并支持文件恢复功能。 首先,我们来理解“Backup-to-dropbox”工具的核心功能。它...

    dropbox0.7.1源码 dropbox source

    dropbox官方源码 2012-03-08 verison:0.7.1

    Dropbox 3.14.7 Offline Installer / DROPBOX 离线安装文件

    Everything you keep in Dropbox is synced automatically to all your devices. Send videos quickly Send your entire wedding video to family with a simple link. It’s easy to share large files with ...

    How to Do Everything Ubuntu

    13. **云服务与备份**: 整合Ubuntu与Dropbox、Google Drive等云服务,以及创建系统和数据备份策略。 14. **故障排查**: 学习如何识别和解决常见的Ubuntu问题,包括错误消息的解读和社区资源的利用。 15. **社区...

    dropbox for linux 核心文件

    Dropbox是一款广受欢迎的云存储服务,它允许用户在多台设备之间同步文件和数据。在Linux系统中,虽然没有官方的图形化安装程序,但可以通过手动方式安装Dropbox的核心文件来实现服务。本篇文章将详细讲解如何在Linux...

    Dropbox 1.0.20

    Dropbox 1.0.20 是一个历史悠久的版本,这款云存储服务的早期迭代为用户提供了方便的数据同步、备份和共享功能。Dropbox的主要目标是让用户能够在任何设备上访问和管理他们的文件,无论是在台式机、笔记本电脑还是...

    dropbox-sdk-java,一个用于Dropbox核心API的Java库。.zip

    **dropbox-sdk-java** 是一个专门为Java开发者设计的开源库,它使得与Dropbox的核心API进行交互变得简单而直观。这个库提供了全面的功能,包括文件上传、下载、管理,以及目录操作,同步,权限控制等,使开发人员...

    dropbox网络硬盘客户端

    Dropbox是一款著名的云存储服务,它为用户提供了一个便捷的方式来存储、同步和分享文件。自推出以来,Dropbox凭借其简洁的界面和强大的功能赢得了全球用户的喜爱。标题中的“网络硬盘客户端”指的是Dropbox提供的一...

    64位Ubuntu安装DropBox所需文件

    标题中的“64位Ubuntu安装DropBox所需文件”意味着我们主要关注的是在64位版本的Ubuntu操作系统上安装Dropbox的过程。Dropbox是一款流行的云存储服务,它允许用户同步、备份和分享文件。在这个场景中,我们需要两个...

Global site tag (gtag.js) - Google Analytics