Originally posted by doublefailure
my harddisk got currupted and i ended up buying new computer
it is very painful lesson.
Ouch! What happened t the old computer?
i'm thinking of having additional hd and find some backup software to regularly backup from hd1 to hd2..
Well if you're just going to install a second disk, you could partition it just as you did your primary drive and duplicate the filesystems on a nightly basis using something as simple (and free!) as tar or cpio. Check out the info page for cpio, especially the section on copying directory structures. Essentially you'd do:
cd fs_mnt_pt ; find . -depth -xdev -print0 | cpio --null -pvd /mnt/dup_fs_mnt_pt
Using tar, it'd be a command like:
cd fs_mnt_pt ; tar clf - . | ( cd /mnt/dup_fs_mnt_pt ; tar xf - )
to copy a directory structure as well. (I'm sure someone
will spot a switch I forgot... :-) )
Backup strategies need to take into account the risk you're trying to reduce and why you might lose it: user error, hardware failure, etc. . For example, having your backup physically installed in the system you're trying to protect won't be much protection for losing data if there's a power surge that damages the system. Plus, using an internal drive as your backup medium won't help much if you realize that you screwed up a file yesterday and last night's backup just made a perfect copy of the corrupted file onto your secondary drive. Unless you want to shut down on a daily basis to install a new hard disk so you have a rotation of disks used for backups.
Is tape out of the question? It's not as fast as a disk-to-disk backup but if you can fit everything you need to backup onto a single tape, it's something you can kick off at the end of the day and remove the following morning. It can cost a bit up front (for hardware and a bit of media) to start backing up to tape. But so can lost data.