#1 (permalink)  
Old 12-22-2008, 11:48 AM
Registered User
 
Join Date: Dec 2008
Posts: 4
ismael_rocha is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-22-2008, 01:20 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
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.
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net
-- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-23-2008, 04:20 AM
Registered User
 
Join Date: Dec 2008
Posts: 4
ismael_rocha is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-23-2008, 09:35 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
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.
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net
-- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-29-2008, 10:25 AM
Registered User
 
Join Date: Dec 2008
Posts: 4
ismael_rocha is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2009, 06:41 AM
Registered User
 
Join Date: Dec 2008
Posts: 4
ismael_rocha is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-28-2009, 05:11 AM
Registered User
 
Join Date: Aug 2006
Posts: 18
laluvirtual is on a distinguished road
and what is the command/script to restore it if we use that backup command/script?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-28-2009, 05:31 AM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Apr 2008
Location: PK
Posts: 232
JPC-Howard is on a distinguished road
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.
__________________
JaguarPC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-28-2009, 05:44 AM
Registered User
 
Join Date: Apr 2005
Posts: 37
jonyzinho is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-28-2009, 07:10 PM
Registered User
 
Join Date: Aug 2006
Posts: 18
laluvirtual is on a distinguished road
Hi JPC-Howard and jonyzinho
thanks u for help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:54 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc