Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2005
    Posts
    41

    Default Backups: When is a backup done?

    As part of my disaster recovery, I like to do daily backups of backups... I run the tar command on the /backup directory (I only have daily backups enabled), and then the resulting TAR file I send to another server. On the other server I keep a certain number of these backup tar files. (I have a lot of space there :-) )

    My problem recently is that cPanel stopped sending me emails when a backup job is finished... Now it sends me (and unreliably so) a mail when a backup job starts... That's kind of useless to me, I only care about when a backup job ends... I can SSH into the machine and see if the cpbackup process is running... But I would much rather get some sort of notification, or better yet, be able to schedule a job that executes when the backup ends.

    To tell the truth I don't mind doing this by hand every day, but I do mind having to babysit the machine until cpbackup ends. Depending on the server load, it ends on very different times each day.

    Does anyone have any suggestions on this for me? What could I try? I guess I could write a script, but I am a Linux programming n00b, and to tell the truth I don't have time for that (I guess I could pay someone here to write it for me though ;-) )

    Any suggestions?

    One more thing: I know there is the FTP backup option in cPanel, but there are a couple things I don't like about it: It seems to be that I need to disable local backups (ie, in /backup) in order to select it, and then it only backs up user accounts... I want a complete cPanel backup, on where I can take the tar file to a new machine and get everything back, including my cPanel configuration not stored in the user account files. I don't care about getting the O/S back, I just want a complete backup of cPanel and my user account data.

    Thanks!

  2. #2
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by gmagana View Post
    or better yet, be able to schedule a job that executes when the backup ends.
    If it doesn't already exist, create /scripts/postcpbackup and add there your command to perform your remote backup. cPanel will run this script when the backup is complete
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  3. #3
    Member
    Join Date
    May 2005
    Posts
    41

    Default

    Thank you! I will try it right away!

  4. #4
    mta
    mta is offline
    Member
    Join Date
    Sep 2003
    Posts
    45

    Default

    Hi,

    try this one
    http://rapidshare.com/files/84940280/LRBackup.tar.gz

    It allows you to make both local and remote backups easily.

    Simply add a cron as said on the help of the script.

    You can use LRBackup --local-backup to make backup locally at a time then LRBackup --remote-backup to send this backup to other server at other time
    Or simply use LRBackup --all-backup to make both local then remote backup itself.

    It also allows you to make a restricted users that will not be backed up for both local and remote backups separately.

    Tested on CentOS 4 & 5.
    Last edited by mta; 01-19-2008 at 12:46 AM.

Similar Threads & Tags
Similar threads

  1. Backup Help - Daily Backups not working correctly
    By SNET1 in forum Data Protection
    Replies: 7
    Last Post: 12-24-2010, 05:58 AM
  2. Backup Help - Daily Backups not working correctly
    By SNET1 in forum New User Questions
    Replies: 5
    Last Post: 09-22-2010, 10:48 PM
  3. Retrieve Backup Even Though Backups Disabled?
    By TeamMediaMike in forum Data Protection
    Replies: 3
    Last Post: 01-02-2009, 12:17 PM
  4. backup prob cant delete backups
    By b0072k1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-26-2005, 11:02 AM
  5. Empty Backup Directory? No Backups!
    By knipper in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-06-2004, 09:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube