If your old HDD is /dev/hdb3 then mount using the follwing command
mount /dev/hdb3 /old |
Run rysnc to copy the files needed as per your requirements.
rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm.
Usage: rsync [OPTION]... SRC [SRC]... DEST or rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST or rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST or rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST or rsync [OPTION]... [USER@]HOST:SRC [DEST] or rsync [OPTION]... [USER@]HOST::SRC [DEST] or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST] |
Options
-v, --verbose increase verbosity -r, --recursive recurse into directories -p, --perms preserve permissions -l, --links copy symlinks as symlinks -o, --owner preserve owner (super-user only) -g, --group preserve group -D same as --devices --specials -t, --times preserve modification times -H, --hard-links preserve hard links
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 |
step 2
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 |
step 3
/scripts/upcp; /scripts/updatenow; /scripts/sysup; /scripts/fixeverything; /scripts/exim4 |
Reference http://forum.ev1servers.net/