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!

Backup retention

Discussion in 'General Discussion' started by t325, Sep 30, 2006.

  1. t325

    t325 Member

    Sep 25, 2006
    Likes Received:
    Trophy Points:
    I'm trying to configure cPanel's backup feature. I have 10 gigs of storage on a separate server. I have cPanel configured to store daily backups on that, and it uploads just fine. But my problem is, it will not retain anything. It just overwrites the existing backup. So say something with the site goes terribly wrong at 11 PM, backups run at midnight, and I don't notice any problem until 10 AM the next morning, I'm basically screwed since the only problem is after something went wrong.

    Right now the file names are account.tar.gz. What I want it to do is somehow add a timestamp, maybe account_MM_DD_YY.tar.gz or something like that, and not delete everything. I have daily backup retention selected (not like I have any other option there) but that's not doing it. I've attached a screenshot of my settings. So, how would I configure cPanel to do this, is it even possible? Thanks

    Attached Files:

  2. chirpy

    chirpy Well-Known Member Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    You would have to take a copy of /scripts/cpbackup and modify it to your needs and then use that instead of the original script in the root crontab.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ClearSky

    ClearSky Well-Known Member

    Jul 9, 2003
    Likes Received:
    Trophy Points:
    Chirpy is right, but perhaps just having CPanel do weekly backups as well would mitigate this situation happening to you. That way you could at least restore to the weekly backup (except on the occasion the problem occures the day a weekly back up is taken as well).

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