David Kryzaniak, LLC logo David Kryzaniak, LLC

  • About
  • Blog
  • Résumé
  • Contact

cPanel/WHM Cron: Delete Backups Older Than 30 Days

Posted on March 20, 2017 by David Kryzaniak

As root crontab -e and add: 4 12 * * * /usr/bin/find /backup/20* -mtime +30 -delete Explanation: 4 12 5 * * At 12:04pm on the 5th of every month /usr/bin/find /backup/20* Find directories in /backup/ that begin with “20”

Read more ›

Posted in Scripts | Tagged Backups, Bash, cPanel, Cron, WHM | Leave a reply

Recent Posts

  • Adding an API Key to your AWS SAM Deploy
  • Serverless HTML to PDF API with AWS Lambda
  • cPanel/WHM Cron: Delete Backups Older Than 30 Days
  • Docker on Amazon Lightsail (Quick Install)
  • Get Noticed! Theme: Changing the Share Bar Icons

Categories

  • AWS (5)
  • Events (1)
  • Hardware Hacks (4)
  • Linux (2)
  • Psychology (1)
  • Random (3)
  • Web (36)
    • API (2)
    • Code Snippets (2)
    • Docker (1)
    • Hacks (4)
    • IIS (1)
    • MODx (1)
    • PHP (5)
    • Responsive (2)
    • Scripts (1)
    • WordPress (15)

Recent Comments

  • David Kryzaniak on Docker on Amazon Lightsail (Quick Install)
  • Leigh on Docker on Amazon Lightsail (Quick Install)
  • Leigh on Docker on Amazon Lightsail (Quick Install)
  • bob on Docker on Amazon Lightsail (Quick Install)
  • Ivan on Force Non-WWW URL in WordPress