Does this theory hold water
Justin Bennett
Justin.Bennett at dynabrade.com
Wed Oct 16 09:43:19 EDT 2002
Ok let me know if this makes sense I know there has been some discussion
on here in the past, I've never done this but think it should work.
I have a RedHat 6.2 Pro web server, I'm running a nightly tar:
tar -czf /home/backup/backup.tar.gz * --directory / --exclude=proc
--exclude=home/backup --exclude=mnt --exclude=*/lost+found
to a network drive, I like that because the tar is only 900M and if our
Webmaster blows something away (you know those graphic artist types) :)
it's easy to pull something out of a tar on disk rather than tape. if this
drive were to fail. I should be able to recover this way:
1. Reload box with redhat 6.2
Use same partition scheme
2. Boot into new 6.2
3. Copy tar to local drive
4. Boot into rescue mode (so that no files are used/locked on local disk)
mknod /dev/sda1,2,3, ect
Mount disk structure under something like /mnt/root
chroot /mnt/root
5. Dump tar to disk (overlaying files)
6. Run lilo
7. Reboot and boot from disk
Does this make sense? Do I need to do all this or can I boot into rescue
mode, fdisk and mkfs on all drives, mount and chroot, dump tar, lilo, and
reboot. I was just wondering if I don't do an install if things like /mnt
are made? Sounds like it might be fun to try on a test box... :)
Thanks
Justin
--
-------------------------------------------
Justin Bennett
Red Hat (Linux) Certified Engineer
Network Administrator
Dynabrade Inc.
8989 Sheridan Dr
Clarence, NY 14031
716-631-0100 ext 215
More information about the nflug
mailing list