|
Softwares ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Main /
Restoring-files-from-old-hard-diskMain.Restoring-files-from-old-hard-disk HistoryHide minor edits - Show changes to output Deleted line 91:
Changed line 93 from:
(:Googlemm:) to:
(:Googlemm:) Deleted lines 6-7:
Added lines 90-91:
'''Reference''' http://forum.ev1servers.net/ Added lines 1-93:
(:Google1:) (:Googlemm:) ---- !!Restoring files form old HDD using rsync this process can be used to restore cpanel serves. ---- '''Reference''' taken from http://forum.ev1servers.net/ If your old HDD is /dev/hdb3 then mount using the follwing command (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) mount /dev/hdb3 /old (:tableend:) 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. (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) 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] (:tableend:) '''Options''' %blue% [@ -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 @]%% (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) 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 (:tableend:) '''step 2''' (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) 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 (:tableend:) '''step 3''' (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) /scripts/upcp; /scripts/updatenow; /scripts/sysup; /scripts/fixeverything; /scripts/exim4 (:tableend:) ---- (:Google1:) (:Googlemm:) |