标签存档: exclude

inotify-tools的inotifywait工具用exclude 和 fromfile 排除指定后缀文件

今天打算使用 inotify-tool 来对线上程序文件进行监控, 因为有些目录是缓存目录, 所以要进行排除, 同时还要排除一些指定的后缀的文件, 比如 .swp 等 需要递归监控的目录为: /tmp/inotify-test-dir 需要排除的目录为: /tmp/inotify-test-dir/cache 需要排除特定后缀文件: .log .swp 文件 根据网上看的一些资料, 我先做了如下尝 …

继续阅读 »