Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    3,700

    how can i export account on centos/cpanel ?

    Hi,

    i run centos/cpanel and i use cpbackup on the 2nd hd,

    but the first hd get issue and it can not boot well,

    and lat night,it do daily backup and stop when server fail,

    by the way,my yesterday backup is not complete.

    now,i want to mount the first hd(sda) to new server,

    is any way to export the account and i can use it to restore on new cpanel server ?



    thanx

  2. #2
    Join Date
    Jan 2011
    Posts
    453
    Hello,

    Move the backups of the accounts to primary drive and restore it. You might need a simple bash script to accomplish this task.

    Good Luck.
    " Your work is to discover your work and then with all your heart to give yourself to it. "

    That's the mark of a true professional !

  3. #3
    Join Date
    Mar 2009
    Posts
    3,700
    Hi,i mean an account is not backup well,i want to know if any way that i can backup it from the mounted old-sda,thanx

  4. #4
    As you will be mounting the old primary HDD as a secondary one, the cPanel backup script won't be able to backup the account. However, you can create the account with it's email accounts and databases on the new server and then move the home folder (/home/username) and its databases (/var/lib/mysql) from old to new HDD.

    For example, if the username is abc and the old HDD is mounted on a /old directory, do the following

    1) create the account from WHM with its email accounts and databases

    2) copy the home folder from old hdd
    mv /home/abc /home/abc.bak
    mv /old/home/abc /home/

    3) copy databases from old hdd
    mv /old/var/lib/mysql/dbname /var/lib/mysql/

    restart the mysql service once.
    | LinuxHostingSupport.net
    | Server Setup | Security | Optimization | Troubleshooting | Server Migration
    | Monthly and Task basis services.
    | MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  5. #5
    Join Date
    Jan 2011
    Posts
    453
    Hello,

    Otherwise you can use the method rsync also. It is the faster method.
    " Your work is to discover your work and then with all your heart to give yourself to it. "

    That's the mark of a true professional !

Similar Threads

  1. Create a second root account on Centos
    By hostyourdream in forum Hosting Security and Technology
    Replies: 15
    Last Post: 06-02-2010, 04:50 PM
  2. Is cPanel backup/database the same as phpmyadmin/export/.gz
    By John D in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-27-2007, 08:09 AM
  3. How to check emails sent by account WHM CentOS
    By eazyjimmy23 in forum Dedicated Server
    Replies: 1
    Last Post: 04-25-2006, 03:50 AM
  4. Import/Export from cPanel/Plesk
    By dvduval in forum Web Hosting
    Replies: 10
    Last Post: 06-10-2005, 05:59 PM
  5. Export MySQL database users in cPanel
    By kanasai in forum Hosting Security and Technology
    Replies: 1
    Last Post: 10-21-2004, 08:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •