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.

Full backup (DNS/Mysql/Mails & templates)

Discussion in 'Data Protection' started by ismael_rocha, Dec 22, 2008.

  1. ismael_rocha

    ismael_rocha Registered

    Joined:
    Dec 22, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello!!

    I want to perform a full backup of all accounts of cPanel, including DNS/Mysql data/Mails and the templates we can customize to generate VirtualHosts to Apache and so on.
    What´s the best way to do it ?
    Is it possible to perform this job using WHM ?
    I need to migrate all things to a new machine with cPanel.
    Thanks for advices.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The customized EasyApache templates are just files you can "copy/paste" to the same location on the new server.

    ---

    You can backup individual accounts by running:

    /scripts/pkgacct <username>

    Though, if you have automatic backups enabled, you may have a full server backup you can simply send to the new server and restore. That would likely be less time consuming than backing up/restoring each account manually.
     
  3. ismael_rocha

    ismael_rocha Registered

    Joined:
    Dec 22, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    "Though, if you have automatic backups enabled, you may have a full server backup you can simply send to the new server and restore. That would likely be less time consuming than backing up/restoring each account manually."

    Dear sir,

    Performing this "full server backup", Will I have all the things I want such as DNS/Mysql database and users/mail and its box and so on???

    Can I do this job from WHM ???

    Thanks
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The full server backup, if stored on your server, will have all of the items you mentioned (DNS, MySQL databases and users, Mail) etc. backed up.

    You can determine where your backups are located by viewing your backup configuration at:

    WHM -> Backup -> Configure Backup

    If your backups are stored locally, the backup destination will indicate where your backups can be found.
     
  5. ismael_rocha

    ismael_rocha Registered

    Joined:
    Dec 22, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Dear sir,

    I have automatic backup enabled on my server. That´s the output of the backup directory:

    root@webserver [/cpbackup/daily]# ls -lh
    total 2.6G
    drwx--x--x 5 root root 4.0K Dec 29 01:20 ./
    drwx--x--x 4 root root 4.0K Oct 10 01:00 ../
    -rw------- 1 root root 6.3M Dec 29 01:04 atacadin.tar.gz
    -rw------- 1 root root 212M Dec 29 01:04 baratudo.tar.gz
    -rw------- 1 root root 11M Dec 29 01:20 cooperat.tar.gz
    -rw------- 1 root root 1.1M Dec 8 01:19 demacola.tar.gz
    -rw------- 1 root root 37M Dec 29 01:01 demacol.tar.gz
    drwx------ 2 root root 4.0K Oct 8 01:00 dirs/
    drwx------ 2 root root 4.0K Oct 21 01:00 files/
    -rw------- 1 root root 6.0M Dec 29 01:02 megamixi.tar.gz
    -rw------- 1 root root 19M Dec 29 01:00 metodist.tar.gz
    -rw------- 1 root root 457K Dec 29 01:02 mixcotac.tar.gz
    -rw------- 1 root root 2.2G Dec 29 01:19 mixvarej.tar.gz
    -rw------- 1 root root 76K Dec 29 01:20 realsmc.tar.gz
    -rw------- 1 root root 22M Dec 29 01:04 smvitori.tar.gz
    -rw------- 1 root root 7.7M Dec 29 01:20 supereal.tar.gz
    -rw------- 1 root root 19M Dec 29 01:04 supergir.tar.gz
    -rw------- 1 root root 43M Dec 29 01:01 superkel.tar.gz
    drwxr-x--- 26 root ttradica 4.0K Oct 9 01:01 ttradica.0/
    -rw------- 1 root root 19M Dec 29 01:01 ttradica.tar.gz
    -rw------- 1 root root 25M Dec 29 01:00 uniaosm.tar.gz

    Do I need to copy all the files (*.tar.gz) and the directories "dirs", "files" to have a full backup copy ??
    After this proccess, how can I proceed ? Just pasting those files into the same directory at other server and restore them from WHM ???
    Please, give some instruction.

    Thanks.
     
  6. ismael_rocha

    ismael_rocha Registered

    Joined:
    Dec 22, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Success

    Dear sir,

    I performed a backup per account using "/scripts/pkgacct <account<" and things were completely success.
    Thanks for all advices and support.

    Ismael Rocha
     
  7. laluvirtual

    laluvirtual Member

    Joined:
    Aug 31, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    and what is the command/script to restore it if we use that backup command/script?
     
  8. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    /scripts/restorepkg account

    where account is the cPanel username of the account.
     
  9. jonyzinho

    jonyzinho Active Member

    Joined:
    Apr 2, 2005
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Restore Backup

    Bom dia,

    É melhor fazer os seguintes passos:

    ========================================
    /scripts/restorepkg username

    DEPOIS FAZER

    chown -R username:username /home/username/

    DEPOIS FAZER

    cd username
    chmod 755 OU 750 public_html
    ========================================

    Cumps,

    Joao


     
  10. laluvirtual

    laluvirtual Member

    Joined:
    Aug 31, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hi JPC-Howard and jonyzinho
    thanks u for help:)
     
Loading...

Share This Page