The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to transfer domains with no backup?

Discussion in 'General Discussion' started by Quanntum, Jul 9, 2005.

  1. Quanntum

    Quanntum Member

    Joined:
    Apr 3, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    This week our server crashed, the HDD didnt boot anymore. Luckily the files on it are accesible.
    We placed a new HDD and installed Cpanel again. Alas, we dont know how to transfer the domains on it. The old HDD was placed as second HDD.
    Is it possible to move all the information of the several domains on it, such as a backup file does?
    ANY HELP IS APPRECIATED !!
    Since Im no linuxwiz please LOTS of explanation needed ! ;-)
     
  2. freakin'me

    freakin'me Member

    Joined:
    Jul 8, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Try the linux command mvdir, for your data.
     
  3. domenetorget

    domenetorget Active Member

    Joined:
    Sep 26, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokksund, Norway
    mount the old / partition as old

    mount /dev/hdb1 /old #if the old partition is hdb1

    start copying back data from the old drive

    rsync -vrplogDtH /old/usr/local/apache/conf /usr/local/apache
    rsync -vrplogDtH /old/var/named /var
    rsync -vrplogDtH /old/home/* /home
    rsync -vrplogDtH /old/usr/local/cpanel /usr/local
    rsync -vrplogDtH /old/var/lib/mysql /var/lib
    rsync -vrplogDtH /old/var/cpanel /var
    rsync -vrplogDtH /old/usr/share/ssl /usr/share
    rsync -vrplogDtH /old/var/ssl /var
    rsync -vrplogDtH /old/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
    rsync -vrplogDtH /old/var/log/bandwidth /var/log
    rsync -vrplogDtH /old/usr/local/frontpage /usr/local
    rsync -vrplogDtH /old/var/spool/cron /var/spool
    rsync -vrplogDtH /old/root/.my.cnf /root
    rsync -vrplogDtH /old/etc/httpd/conf/httpd.conf /etc/httpd/conf
    rsync -vrplogDtH /old/etc/sysconfig/network /etc/sysconfig

    then change to the old etc, and execute all on one line ...

    cd /old/etc

    rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc

    That's it.

    Update cpanel afterwards .. /scripts/upcp .. /scripts/updatenow .. /scripts/sysup .. /scripts/fixeverything
     
  4. Quanntum

    Quanntum Member

    Joined:
    Apr 3, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Cant mount !!

    The mounting also didnt work since the old HDD is part of a mirror. Or better was, the other mirror-drive completely crashed.
    I had access to the drive contents when i<was at the data center but i hadnt thought i couldnt access them in SSH.

    Apparaat Boot Start End Blocks Id System
    /dev/hde1 * 1 1275 10241406 fd Linux raid auto-detectie
    /dev/hde2 1276 2550 10241437+ fd Linux raid auto-detectie
    /dev/hde3 2551 2741 1534207+ fd Linux raid auto-detectie
    /dev/hde4 2742 7297 36596070 f W95 Ext'd (LBA)
    /dev/hde5 2742 2868 1020096 fd Linux raid auto-detectie
    /dev/hde6 2869 2995 1020096 fd Linux raid auto-detectie
    /dev/hde7 2996 7284 34451361 fd Linux raid auto-detectie
    /dev/hde8 7285 7297 104391 fd Linux raid auto-detectie

    Any idea how to convert the raid partitions to normal ext3 that are mountable?
     
Loading...

Share This Page