> i'm backing up my precious server into another > hdd, and im wondering what > are the steps to make that backup hdd the exact > copy of my server (not > including the /home directory). the server is in > an 80GB hdd, / partition > is 20GB, 600MB is used; 60GB is alloted to > /home). the backup hdd is 10GB.
My minifaq: convention: /dev/hda1 ==> source /dev/hdb1 ==> target - do the usual stuff for the target like fdisk, mkfs, mkswap, etc. - mount the target partition example is: mount /dev/hdb1 /mnt - Copy source to target except /proc and /home. create subdir /proc and /home on target. cp -ax /root /usr /lib /dev .. <etc> .. /mnt mkdir -p /mnt/proc /mnt/home - edit the target /mnt/etc/fstab to reflect the target hdd, ex. /dev/hdb1 - update mbr of the target using lilo or grub for lilo, you can do: chroot /mnt lilo - test the 2nd HDD if it will boot. General way to do it. You can script the whole thing since fdisk, mkswap, mkfs and lilo are just done once. the recurring part is cp and editting the fstab. you can use sed to auto edit fstab. mind you this also applicable for: - Cold Standby Mirror. backup your pri. hdd everyday or every week. really great if you trashed the pri. disk because of human error, and not hardware problems. RAID mirror will not help you with recovery since it's human error which is involved. - upgrading the primary HDD to a larger HDD. regards, Andre Varon, SCSA -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
