Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Smile Full backup (DNS/Mysql/Mails & templates)

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ismael_rocha View Post
    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.
    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. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Smile

    "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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ismael_rocha View Post
    "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
    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. #5
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Default

    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. #6
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Default 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. #7
    Member
    Join Date
    Aug 2006
    Posts
    20

    Default

    and what is the command/script to restore it if we use that backup command/script?

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by laluvirtual View Post
    and what is the command/script to restore it if we use that backup command/script?
    /scripts/restorepkg account

    where account is the cPanel username of the account.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  9. #9
    Member
    Join Date
    Apr 2005
    Posts
    39

    Default 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


    Quote Originally Posted by laluvirtual View Post
    and what is the command/script to restore it if we use that backup command/script?

  10. #10
    Member
    Join Date
    Aug 2006
    Posts
    20

    Default

    Hi JPC-Howard and jonyzinho
    thanks u for help

Similar Threads & Tags
Similar threads

  1. Incramental Local & Full Remote Backup Plan
    By davetanguay in forum Data Protection
    Replies: 7
    Last Post: 11-26-2009, 10:56 AM
  2. Replies: 1
    Last Post: 01-18-2008, 10:44 AM
  3. Backup packages & zone templates
    By wookiee in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-07-2007, 07:51 PM
  4. Full Backup & Host advice please [moved]
    By dbusau in forum Data Protection
    Replies: 5
    Last Post: 08-31-2006, 11:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube