如何将svn repo中的文件复制到服务器上的另一个文件夹中

时间:2020-12-04 23:58:13

Running a centos 6 server with svn repos stored on it. To deploy updates, I'd like to copy from the relevant directory within the svn repo to the appropriate /var/www website directory. Is there a simple way to do this?

运行存储在其上的svn repos的centos 6服务器。要部署更新,我想从svn repo中的相关目录复制到相应的/ var / www网站目录。有一个简单的方法吗?

1 个解决方案

#1


1  

Use the svn export command to do that. The subversion red book explains in detail how to do that.

使用svn export命令执行此操作。颠覆红皮书详细解释了如何做到这一点。

When the relevant svn repo is stored under /export/svn/repo, and the part of the repository you want to copy from is /trunk/my_project/news, the whole command will be:

当相关的svn repo存储在/ export / svn / repo下,并且要复制的存储库部分是/ trunk / my_project / news时,整个命令将是:

svn export file:///export/svn/repo/trunk/my_project/news /var/www/news

#1


1  

Use the svn export command to do that. The subversion red book explains in detail how to do that.

使用svn export命令执行此操作。颠覆红皮书详细解释了如何做到这一点。

When the relevant svn repo is stored under /export/svn/repo, and the part of the repository you want to copy from is /trunk/my_project/news, the whole command will be:

当相关的svn repo存储在/ export / svn / repo下,并且要复制的存储库部分是/ trunk / my_project / news时,整个命令将是:

svn export file:///export/svn/repo/trunk/my_project/news /var/www/news