Livid
284.01D
541.76D
V2EX  ›  Puppet

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

  •  
  •   Livid ·
    PRO
    · Sep 23, 2014 · 6919 views
  •   You need to sign in to view this topic
    This topic created in 4272 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   ·   952 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 19:25 · PVG 03:25 · LAX 12:25 · JFK 15:25
    ♥ Do have faith in what you're doing.