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 Job For Backups

Discussion in 'General Discussion' started by JZM, Feb 3, 2014.

  1. JZM

    JZM Member

    Joined:
    Aug 17, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    51
    How can I write a cron so that it deletes the previous days back up at midnight - They are backed up to S3 so I am wanting to remove the local copy out of ~/backups
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    575
    Likes Received:
    20
    Trophy Points:
    143
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Apparently you are using a custom backup script, not the one in cPanel is that correct?
    It would probably be a good idea to ask the author of the custom script you are using to backup to S3.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. JZM

    JZM Member

    Joined:
    Aug 17, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    51
    Peter,

    I have been there and tried that - I am using /http://s3backupwhm.com/
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,478
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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