subversion :将特定存储库内容移动到另一个存储库(最后出于安全原因我必须删除旧存储库)

发布于 2024-07-26 20:13:42 字数 109 浏览 4 评论 0原文

出于安全原因,我想在从系统中删除当前存储库之前保留包含所有修订的特定文件夹(意味着我不需要存储库的其他信息,而是特定的文件夹)。所以我正在考虑创建一个新的存储库并将特定文件夹的内容复制到其中..这可能吗?

I want to keep a particular folder with all revisions before deleting the current repository from my system for security reasons (means i don't want other informations of the repository, but a particular folder).. So i am thinking of creating a new repository and to get copied the particular folder's content into it.. Can it be possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

筱果果 2024-08-02 20:13:42

是的。 您需要svnadmin转储 你的存储库,通过 svndumpfilter 保留所需的文件夹,然后 svnadmin load 将其加载到新存储库中。

这些链接中有示例,尤其是 svndumpfilter 链接。 提示:为了让一切变得更快,请将 3 个实用程序组合在一个命令中,不要转储到文件,过滤文件然后加载文件 - 将每个实用程序的输出通过管道传递到下一个。

Yup. You need svnadmin dump your repository, run it through svndumpfilter to keep the folder you want and then svnadmin load it into the new repository.

Examples are in those links, especially the svndumpfilter one. Hint: to make it all go faster, combine the 3 utilities in a single command, don't dump to a file, filter the file then load the file - pipe the output of each to the next.

度的依靠╰つ 2024-08-02 20:13:42

您应该能够使用svnadmin dumpsvndumpfilter来完成此操作:http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint .过滤

You should be able to do this with svnadmin dump and svndumpfilter: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文