Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron To Delete Oldest Daily Backup Directory

Discussion in 'Data Protection' started by HappyPappy, Oct 4, 2013.

  1. HappyPappy

    HappyPappy Active Member

    Mar 17, 2002
    Likes Received:
    Trophy Points:
    Hi everyone,

    I would like to first say thank you to cpanel for their new backup system. Boy of boy what an improvement.

    I can't seem to come up with the right cron code to delete only the oldest daily backup directory just before the backup process starts. I have some other files in the "backup" directory so the cron code must only delete the daily backup directory that is three days old.

    I know cpanel deletes the oldest daily backup directory after it has saved the latest one but this amounts to needing space to accommodate an extra daily backup directory for only a few minutes before it is deleted.

    But if I delete the oldest daily backup directory first then I can safely fit an extra daily backup in my 250GB backup disk.

    Any help would be appreciated.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice