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.

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:
    1
    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:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page