批量验证 svn 存储库
你好,我想知道是否有一个工具(可以是商业的)来批量验证 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
编写一个 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.好的,这不会邮寄结果,但它确实从所有 subversion 存储库中获取结果,并且不使用 vb 或 c#,只是简单的 cmd 批处理脚本:
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':
有一个名为 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.
MR - ATS 工具看起来就像蒸汽软件。没有已发布的文件,也没有 > 的活动1 年 :(
The MR - ATS tool looks like vapourware. No released files and no activity for > 1 year :(