Livid
291.9D
558.39D
V2EX  ›  Puppet

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

  •  
  •   Livid ·
    PRO
    · Sep 23, 2014 · 6956 views
    This topic created in 4287 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   ·   2491 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 77ms · UTC 10:10 · PVG 18:10 · LAX 03:10 · JFK 06:10
    ♥ Do have faith in what you're doing.