svn - Subversion 存储库中的病毒,怎么办?

标签 svn antivirus

想象一下以下情况:

  • 受病毒感染的文件已提交到 Subversion 存储库中。
  • 防病毒扫描程序在服务器上运行,并且还会扫描 Subversion 存储库。

  • 防病毒扫描程序将删除受影响的修订版或将其移至隔离区。结果是一个损坏的存储库。

    如果修订文件可恢复(从隔离区),如何解决此问题?
    我有一些目标要实现:
  • 不允许从目录中禁用或排除 AV。
  • 被病毒感染的文件一定不能存放在存储库中
  • 存储库必须一致且可用。

  • 这个小问题的最佳解决方案是什么?

    最佳答案

    来自 FAQ :

    There are special cases where you might want to destroy all evidence of a file or commit. (Perhaps somebody accidentally committed a confidential document.) This isn't so easy, because Subversion is deliberately designed to never lose information. Revisions are immutable trees which build upon one another. Removing a revision from history would cause a domino effect, creating chaos in all subsequent revisions and possibly invalidating all working copies.

    The project has plans, however, to someday implement an svnadmin obliterate command which would accomplish the task of permanently deleting information. (See issue 516.)

    In the meantime, your only recourse is to svnadmin dump your repository, then pipe the dumpfile through svndumpfilter (excluding the bad path) into an svnadmin load command. See chapter 5 of the Subversion book for details about this.

    关于svn - Subversion 存储库中的病毒,怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2922057/

    相关文章:

    c++ - OpenProcessToken 从本地系统服务失败并出现 ERROR_ACCESS_DENIED

    c# - 我需要一种更好的方法来查询已安装的防病毒软件。 c# 中可能有类似的东西吗?

    java - XML 解析器触发 AV 警报

    linux - SVN 导出命令成功运行但文件未出现在目标路径中

    Git 与 SVN 主干和分支

    windows - 如何通过 HelpNDoc 使用 Subversion

    php - 是否有任何可以重新格式化 PHP 源代码的免费命令行脚本?

    git-svn:迁移具有不同层级分支的 SVN 存储库

    node.js - 错误 : SELF_SIGNED_CERT_IN_CHAIN using localhost

    asp.net - ASP.Net 2中上传的文件在哪里?