简体   繁体   English

不使用svnadmin创建SVN转储

[英]Create SVN dump without svnadmin

I have my SVN hosted with a private provider who does not offer svnadmin dump to create my own backups. 我将SVN托管在不提供svnadmin dump来创建我自己的备份的私有提供商中。 All I can do is use an SVN client. 我所能做的就是使用SVN客户端。

I want to be able to use normal svn command lines and create a dump file so I can either back it up or move my SVN repo somewhere else whilst maintaining the history. 我希望能够使用普通的svn命令行并创建转储文件,以便我可以备份它或将SVN存储库移动到其他位置,同时保持历史记录。

Is there any way I can do this? 有什么办法可以做到吗? Or will I have to just have to lose the history and relocate. 还是我只需要失去历史并搬迁。

You should use svnsync . 您应该使用svnsync

Here are detailed instructions: 以下是详细说明:

  • create a fresh local repo on your local machine 在本地计算机上创建一个新的本地仓库
  • use svnsync init to connect your local repository to your provider's 使用svnsync初始化将本地存储库连接到提供商的
  • use svnsync sync to replicate the repository to your machine 使用svnsync sync将存储库复制到您的计算机

By this you maintain a local copy on your machine 这样,您可以在计算机上维护本地副本

Keep in mind that your local repository should not get changes from other places than via svnsync sync . 请记住,除了通过svnsync sync之外,本地存储库不应从其他位置获取更改。 But it is the easiest and most convenient way to keep a local backup. 但这是保留本地备份的最简单,最方便的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM