1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Migration questions

Discussion in 'Data Protection' started by markjohnson, Apr 24, 2009.

  1. markjohnson

    markjohnson New Member

    Joined:
    Apr 23, 2009
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    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.

    The mail messages, are they stored using the mbox format or the maildir format?
     
  3. markjohnson

    markjohnson New Member

    Joined:
    Apr 23, 2009
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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.

    mbox.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    You may want to let our technical analysts take a look at that for you (see my signature)


    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.
     
  5. markjohnson

    markjohnson New Member

    Joined:
    Apr 23, 2009
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  6. markjohnson

    markjohnson New Member

    Joined:
    Apr 23, 2009
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  7. Zishan

    Zishan New Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    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.
     
  8. markjohnson

    markjohnson New Member

    Joined:
    Apr 23, 2009
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  9. thewebhosting

    thewebhosting Active Member

    Joined:
    May 9, 2008
    Messages:
    1,202
    Likes Received:
    1
    Trophy Points:
    38
    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-unix-setting-up-mysql-database-quotas.html
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    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.
     

Share This Page