批量验证 svn 存储库

发布于 2024-08-23 12:02:42 字数 120 浏览 5 评论 0原文

你好,我想知道是否有一个工具(可以是商业的)来批量验证 svn 存储库。我知道如何使用 svnadmin,但是大约有 100 个存储库,检查是否确实存在损坏是很乏味的。我正在寻找可以定期在后台运行并在出现损坏时发出警报的东西。

Hi I'm wondering if there is a tool (can be commercial) to mass verify svn repositories. I know about using svnadmin but there are about 100 repositories and it's tedious to check whether if there's actually a corruption. I'm looking for something that can run in the background periodically and alert if there is a corruption.

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

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

发布评论

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

评论(4

枕花眠 2024-08-30 12:02:42

编写一个 shell 脚本来对所有存储库执行 svnadmin verify PATH ,将输出通过管道传输到过滤器(例如 grep -v )不是相当简单吗? )正常的“已验证修订版xxx”案例,并将其余部分通过电子邮件发送给某人?将其放入 crontab 中,您就拥有了一个定期质量验证器。

Wouldn't it be reasonably simple to write a shell script that executes svnadmin verify PATH for all the repositories, pipes the output to a filter that filters out (e.g. grep -v) the normal "Verified revision xxx" cases, and emails the rest to someone? Put that in crontab and you have a periodic mass verifier.

成熟稳重的好男人 2024-08-30 12:02:42

好的,这不会邮寄结果,但它确实从所有 subversion 存储库中获取结果,并且不使用 vb 或 c#,只是简单的 cmd 批处理脚本:

@echo off
FOR /D %%s in (*) do svnadmin verify %%s > ..\verified\%%s.txt 2>&1

Ok, this doesn't mail the results but it does get it out of all the subversion repos and it doesn't use vb or c#, just plain ol' cmd batch scriptin':

@echo off
FOR /D %%s in (*) do svnadmin verify %%s > ..\verified\%%s.txt 2>&1
几度春秋 2024-08-30 12:02:42

有一个名为 MR-ATS 的工具,它正是这样做的:它是用 python 编写的以帮助svnadmins 的日常工作(例如验证很多存储库)。

如果发生奇怪的事情,它将处理计划任务并发送电子邮件。此外,它还可以生成使用情况报告并进行备份热副本。

There is a tool called MR-ATS which does exactly this thing: It is written in python to help svnadmins by their day to day work (as eg. verify a lot of repositories).

It will work with a scheduled task and send emails, if something strange happens. Additionally it can generate usage reports and do hotcopies for backups.

π浅易 2024-08-30 12:02:42

MR - ATS 工具看起来就像蒸汽软件。没有已发布的文件,也没有 > 的活动1 年 :(

The MR - ATS tool looks like vapourware. No released files and no activity for > 1 year :(

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