#1 (permalink)  
Old 04-24-2009, 02:25 PM
Registered User
 
Join Date: Apr 2009
Posts: 11
markjohnson is on a distinguished road
Migration questions

Hello everyone,

First of all, thanks to the Cpanel team for an excellent piece of software.

I am a new customer and currently running cpanel on a trial basis, at the end of which I intend to take out a license for a year.

Before that, I would like to know how to migrate accounts from a certain setup to Cpanel.

1) Cpanel backups, how do I migrate them to my Cpanel machine? For instance, I have a backup for a site in a filename 'daily.tar.gz'. When I uploaded it via the restore process, it uploaded the file and untar'ed it in /username directory of /home/username, but nothing at all in /public_html. How can I restore the files in /public_html? How can I extract the mysql database in that archive and restore that?

2) On another server I have the normal setup where all the files are located in /public_html and the databases could easily be dumped and then injected into Cpanel databases, via phpmyadmin. However, the emails are setup as /home/username/mail/ where mail directory contains all the folders, such as inbox, sent-mail, Drafts, samplefolder, etc, which is obviously different to the way Cpanel stores emails. Q: How can I migrate all the emails to Cpanel?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2009, 02:25 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 markjohnson View Post
Hello everyone,

First of all, thanks to the Cpanel team for an excellent piece of software.

I am a new customer and currently running cpanel on a trial basis, at the end of which I intend to take out a license for a year.

Before that, I would like to know how to migrate accounts from a certain setup to Cpanel.

1) Cpanel backups, how do I migrate them to my Cpanel machine? For instance, I have a backup for a site in a filename 'daily.tar.gz'. When I uploaded it via the restore process, it uploaded the file and untar'ed it in /username directory of /home/username, but nothing at all in /public_html. How can I restore the files in /public_html? How can I extract the mysql database in that archive and restore that?
I recommend placing the Full Site Backup file in /home/ (not in a user's home directory) or /root/ then going to WHM -> Backups -> Restore a Full Backup/cpmove file. No need to create the user account, untar the file manually etc.

If you already have a user account based off the custom restoration procedures you described, I advise deleting that account if it is not in production use and attempting a restore using the method I described above.

Quote:
Originally Posted by markjohnson View Post
2) On another server I have the normal setup where all the files are located in /public_html and the databases could easily be dumped and then injected into Cpanel databases, via phpmyadmin. However, the emails are setup as /home/username/mail/ where mail directory contains all the folders, such as inbox, sent-mail, Drafts, samplefolder, etc, which is obviously different to the way Cpanel stores emails. Q: How can I migrate all the emails to Cpanel?
The mail messages, are they stored using the mbox format or the maildir format?
__________________
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 04-24-2009, 03:01 PM
Registered User
 
Join Date: Apr 2009
Posts: 11
markjohnson is on a distinguished road
Quote:
I recommend placing the Full Site Backup file in /home/ (not in a user's home directory) or /root/ then going to WHM -> Backups -> Restore a Full Backup/cpmove file. No need to create the user account, untar the file manually etc.

If you already have a user account based off the custom restoration procedures you described, I advise deleting that account if it is not in production use and attempting a restore using the method I described above.
I did just that. Before I clicked on 'restore', I noticed that it has detected daily.tar.gz under /home. It said:

Quote:
Possible cpmove archives found:
(/home) daily.tar.gz
But when I run restore it says:

Quote:
Searching /home....
checked 10 files.....
No Restorable archives found!

Searching /home2....
checked 0 files.....
No Restorable archives found!

Searching /home3....
checked 0 files.....
No Restorable archives found!

Searching /root....
checked 7 files.....
No Restorable archives found!

Searching /usr....
checked 18 files.....
No Restorable archives found!

Searching /usr/home....
checked 0 files.....
No Restorable archives found!

Searching /web....
checked 0 files.....
No Restorable archives found!



No archives where found for user tailor!!
tailor is the username I want to create.

Quote:
The mail messages, are they stored using the mbox format or the maildir format?
mbox.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-24-2009, 03:50 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 markjohnson View Post
I did just that. Before I clicked on 'restore', I noticed that it has detected daily.tar.gz under /home. It said:



But when I run restore it says:



tailor is the username I want to create.
You may want to let our technical analysts take a look at that for you (see my signature)


Quote:
Originally Posted by markjohnson View Post
mbox.
If you convert the mail to maildir format, you could create the email accounts on the cPanel/WHM server then just copy the maildir files over.
__________________
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 04-24-2009, 04:28 PM
Registered User
 
Join Date: Apr 2009
Posts: 11
markjohnson is on a distinguished road
Thanks, I have submitted a ticket.

Quote:
If you convert the mail to maildir format, you could create the email accounts on the cPanel/WHM server then just copy the maildir files over.
How do I do that? By clicking on 'Mail Directory Conversion System'?

If so, I have to make sure that all the folders are located in /mail directory?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-24-2009, 04:36 PM
Registered User
 
Join Date: Apr 2009
Posts: 11
markjohnson is on a distinguished road
Another question I had:

Where does Cpanel store mysql dbs? in /home/username? Or elsewhere?

i.e. does the quote take into account DB size as well? or just the files?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-25-2009, 10:58 AM
Zishan's Avatar
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Aug 2005
Posts: 104
Zishan is on a distinguished road
Quote:
Originally Posted by markjohnson View Post
Another question I had:

Where does Cpanel store mysql dbs? in /home/username? Or elsewhere?

i.e. does the quote take into account DB size as well? or just the files?
The databases are stored at the location where mysql stores the databases. cPanel doesn't store the databases elsewhere. Mostly the defautl mysql installation stores the databases at /var/lib/mysql.

Database size is not counted in the user disk space.
__________________
Zishan S. | JaguarPC
Landis Holdings Inc. - High Class Hosting since 1998*
WowVPS | JaguarPC | Hosting Zoom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-25-2009, 12:35 PM
Registered User
 
Join Date: Apr 2009
Posts: 11
markjohnson is on a distinguished road
Right. Is there anyway of including mysql DBs within username allocated quota?

Some users have DBs as big as 300 MBs and over time they would become 600MB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-27-2009, 01:36 AM
Registered User
 
Join Date: May 2008
Posts: 1,083
thewebhosting is an unknown quantity at this point
Quote:
Originally Posted by markjohnson View Post
Right. Is there anyway of including mysql DBs within username allocated quota?

Some users have DBs as big as 300 MBs and over time they would become 600MB
MySQL server has no support for preventing disk from getting filled up. You need to depend upon external configurations. Please refer http://www.cyberciti.biz/tips/linux-...se-quotas.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-27-2009, 10:00 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 markjohnson View Post
Thanks, I have submitted a ticket.



How do I do that? By clicking on 'Mail Directory Conversion System'?

If so, I have to make sure that all the folders are located in /mail directory?
There's a utility called mb2md that you can find in an internet search to do this on your existing server. The utility included in cPanel/WHM is primarily geared for very old cPanel/WHM systems that may still be on the mbox format from years ago.
__________________
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
Reply

Tags
backup , migration , restore

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:42 PM.


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