V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Livid
267.12D
575.1D
V2EX  ›  Puppet

清除 Puppet Master 的 /var/lib/puppet/reports 目录下旧文件的指令

  •  
  •   Livid ·
    PRO
    · Sep 23, 2014 · 6821 views
    This topic created in 4235 days ago, the information mentioned may be changed or developed.
    cd /var/lib/puppet/reports && find . -type f \
    -name \*.yaml -mtime +7 -print0 | xargs -0 -n50 /bin/rm -f
    
    1 replies    2014-09-23 13:38:44 +08:00
    ericFork
        1
    ericFork  
       Sep 23, 2014
    我们从开始用 puppet 时就用 cron 来做这件事情了,随着年深日久,机器数量增长,这个目录下日志容量还是比较可观的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4851 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 09:57 · PVG 17:57 · LAX 02:57 · JFK 05:57
    ♥ Do have faith in what you're doing.