The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backup retention

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

  1. t325

    t325 Member

    Joined:
    Sep 25, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  3. ClearSky

    ClearSky Well-Known Member

    Joined:
    Jul 9, 2003
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    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).
     
Loading...

Share This Page