On Tue, Jul 08, 2003 at 09:24:57PM -0700, Linux Rocks! wrote: > Its called tar(tape archive) its your friend. lets say you mount the drive > you want to mirror at /mirrordisk to one big file named /backup/mirror.tar > > cd to /mirrordisk then : > tar -cvf . /backup/mirror.tar > you can then compress the tar with > gzip /backup/mirror.tar > (which will turn /backup/mirror.tar to /backup/mirror.tar.gz (or .tgz if you > specify that...) > This ovcourse you will want to do as root... For backing up a whole system, one would use the -p option to preserve file ownership and permissions. Also, one should exclude /proc and /backup or any other mounted directories otherwise one will have an image of all processes in memory as well as a copy of the tar file within the tar file.
tar cfzp --exclude /proc --exclude /backup /backup/mirror.tgz / > to restore the files... > > assuming that the disk you want to restore to is /restore, and your backup > is /backup/mirror.tar.gz > > cd to /restore > tar -xvf /mirror/backup.tar.gz . If it is gzipped it needs to be ungzipped first. Again, use permissions. cd / ; tar xfpz /backup/mirror.tgz Cory -- Cory Petkovsek Adapting Information Adaptable IT Consulting Technology to your (541) 914-8417 business [EMAIL PROTECTED] www.AdaptableIT.com _______________________________________________ EuG-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
