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!

Executing a script after main cpbackup has finished.

Discussion in 'Data Protection' started by Jinovich, Jan 22, 2010.

  1. Jinovich

    Jinovich Member

    Joined:
    Mar 16, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    I very vaguely remember that there is a way for cpanel to automatically execute another script after it has completed cpbackup.

    I have just finished writing my first shell script which uploads my daily backups to Amazon S3 and deletes copies of the backups older then 5 days from S3 before emailing me of its completion.

    Currently I am executing this as a cron job an hour after I receive the email from cpanel regarding backups being complete.

    I would prefer to run it post-completion of cpbackup so I can ensure that everytime it wont run until the backups have been completed. Anyone know how to do this?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,436
    Likes Received:
    416
    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