Livid
408.15D
537.22D
V2EX  ›  Puppet

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

  •  
  •   Livid ·
    PRO
    · Sep 23, 2014 · 7399 views
    This topic created in 4449 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
    ericFork
    Sep 23, 2014
    1
    我们从开始用 puppet 时就用 cron 来做这件事情了,随着年深日久,机器数量增长,这个目录下日志容量还是比较可观的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   883 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:37 · PVG 04:37 · LAX 12:37 · JFK 15:37
    ♥ Do have faith in what you're doing.