It really depends on what you're trying to do.

If you want a logical copy, you can use the ol' tar trick:

tar --preserve --one-file-system -cf - | (cd /mountpoint ; tar --preserve -xf -)

If you want a physical copy, you can do:

mount /mountpoint-of-old-disk -oremount,ro
dd if=/dev/old-disk-dev of=/dev/new-disk-dev

This will probably mess up your patrition table on the
new disk, you'll have a partitioning scheme the same as
the old drive, but it's good for backup.

If you are worried about a disk failure, you can leave
both disks in the machine and run them in RAID-1 mode
using raidtoold or mdadm. There's a procedure to be
followed for adding another disk to an existing one and
creating a mirrored pair without destroying your
current copy, at:

http://linas.org/linux/Software-RAID/Software-RAID-3.html (read Q 10 and the reply)
http://unthought.net/Software-RAID.HOWTO/Software-RAID.HOWTO-4.html#ss4.14 - older but 
still true

The mdadm tools are better and newer. Some of the stuff
I have linked to refers to raidtools which are older.

-- Arik


-----Original Message-----
From: Amir Spivak [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 11:49 AM
To: [EMAIL PROTECTED]
Subject: Hard Disk mirroring


Hi,
I have a server which i want to copy in case of a HD failure, the way i want to do it 
is just copying all its contents to a new HD that i will mount on the server, after 
mounting, i want a utility that will mirror entire HD to it in the simplest way 
possible,
thx.
**********************************************************************
This email and attachments have been scanned for
potential proprietary or sensitive information leakage. 

PortAuthority(TM)  Server 
Keeping Information Inside
Vidius, Inc. 
www.vidius.com
**********************************************************************


================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to