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.

Cpanel Manual Backup

Discussion in 'cPanel Developers' started by Alwar, Mar 7, 2011.

  1. Alwar

    Alwar Member

    Joined:
    Mar 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Could you anyone tell me that if there is any way to backup a cPanel manually by developing our own script ?.
    if yes, then could you tell me the directories that are to be included in that backup ?.

    I found one way of doing the cPanel backup by using API2 function[Fileman::fullbackup]. But I would not like to use that API function.

    I just want doing the cPanel backup by just copying the directories.


    Thanks in advance,
    Alwar
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi Alwar,

    There are many individual files scattered throughout the filesystem that contain relavent user data. That is why there are backup utilities like Fileman::fullbackup. It would be difficult to create a backup solution that hit's all the important files, or extracts info from cPanel system files.

    If you just want to copy directories, I guess I'd backup /home, /etc, and /var . Those can be big directories. Often they're their own partition! There's lots of cpanel and user data in all of them and if you had a copy of those three directories, it's plausible that you could recover most all of the data for any given user on the system.

    1) /home: all subdirectories are the user's home directories. These will contain the files most important to the user, since there home directories are where they upload their websites and ftp data, etc.

    2) /etc: there are several important files in here related to userdata that cPanel uses internally

    3) /var: this will contain various directories that are important to your cpanel installation, and you user's data as it pertains to various sub-systems. I.e. /var/named will have zone records, /var/lib/mysql will have all the mysql directories, /var/cpanel/ will have many important files for the cPanel system and the cPanel user configuration.

    Regards,
    -DavidN
     
  3. Alwar

    Alwar Member

    Joined:
    Mar 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi DavidN,

    Thank you for your detailed explanation. Now I think it is better to use cPanel API function to backup cPanel.

    -Alwar
     
Loading...

Share This Page