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.

Account Backup to include httpd.conf Userdata

Discussion in 'Data Protection' started by erikig, Jul 25, 2009.

  1. erikig

    erikig Registered

    Joined:
    Jan 13, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    It appears that the when I restore an account from a backup, any custom easyapache userdata configuration that I created (for auto-inclusion into httpd.conf) is not retained.

    None of these custom configuration files are saved:
    /usr/local/apache/conf/userdata/std/2/account/www.account.com/*

    I just went through the actual cpbackup folders and I couldn't find any of the custom apache configurations for the backed up accounts.

    I expected that these files would be in either:
    cpbackup/daily/dirs/_usr_local_apache_conf (or)
    cpbackup/daily/dirs/_etc_httpd_conf
    but those directories are not backed up.

    Is this happening to anyone else? :confused:

    What do I have to do to include the custom configuration for each account so I can recover it from a backup? :confused:
     
  2. TaneNZ

    TaneNZ Active Member

    Joined:
    Apr 11, 2007
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    those files are part of the user backup and are contained within the httpfiles directory of the user backup, i.e.: tar -zxvf username.tar.gz username/httpfiles
     
  3. erikig

    erikig Registered

    Joined:
    Jan 13, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Followup on Account Backup to include httpd.conf Userdata

    Hey TaneNZ thanks, but unfortunately the "daily/<account>/httpfiles" directory does not include the updated files :(

    I assumed this was an issue on just one of my servers so I checked the others (I have 3 with various hosts running CentOS 4 & 5 and one VPS) and that directory is empty (both for both the daily and weekly backups).

    Just as a note, none of my backups are compressed so I don't have to untar the backups to review them.

    In addition I have:
    "Backup Type" Standard (not FTP)
    "Incremental Backup" Enabled
    "Backup Configuration Files" Enabled

    Could anyone else that has a custom httpd.conf includes distilled into their apache configs check whether the backups are included in the backup records under "<account>/httpfiles/"?

    If this is not the case, I will try to check with the CPanel folks to see whether it is a legitimate bug :eek:

    Thanks,
    ~
    E
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What is your full cPanel version number? These files are included in my tests on 11.24.5-CURRENT_38506
     
Loading...

Share This Page