Recent Changes - Search:

Softwares

.

Restoring-files-from-old-hard-disk

Main.Restoring-files-from-old-hard-disk History

Hide minor edits - Show changes to output

August 24, 2012, at 10:39 AM by 101.62.104.194 -
Added line 93:
August 15, 2012, at 01:42 PM by 115.242.228.192 -
Deleted line 91:
Changed line 93 from:
(:Googlemm:)
to:
(:Googlemm:)
August 15, 2012, at 01:39 PM by 115.242.228.192 -
Changed line 2 from:
(:Googlemm:)
to:
(:Googletxt:)
August 15, 2012, at 01:29 PM by 115.242.228.192 -
Deleted line 93:
(:Google1:)
November 10, 2011, at 12:04 PM by 117.192.137.154 -
Deleted lines 6-7:
'''Reference''' taken from http://forum.ev1servers.net/
Added lines 90-91:

'''Reference''' http://forum.ev1servers.net/
November 02, 2011, at 10:58 PM by 15.211.153.74 -
Added line 52:
[@
Changed line 68 from:
to:
@]
Added line 77:
November 02, 2011, at 10:57 PM by 15.211.153.74 -
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:)
Edit - History - Print - Recent Changes - Search
Page last modified on August 24, 2012, at 10:39 AM