Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2003 08:08:30 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-isp@freebsd.org
Cc:        "Arie J. Gerszt" <arie@gerszt.ch>
Subject:   Re: offline disk redundancy
Message-ID:  <thqgtvgfjmr5nq542dbfvc76r22h43625i@4ax.com>
In-Reply-To: <mailman.1071129661.14452.fisp-l@lists.sentex.ca>
References:  <mailman.1071129661.14452.fisp-l@lists.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

We use dump and restore and have a firewire drive on our backup
server.

e.g. either "push" or "pull" the dump to your backup server

#!/bin/sh
#push a backup image to the server backupserver.example.com
#and place the gzip'd file in the path /backups/server

/sbin/dump -0uanf - / |gzip -5 | ssh -c blowfish
backupuser@backupserver.example.com dd
of=3D/backups/server/dump-root-l0.gz

/sbin/dump -0uanf - /usr |gzip -5 | ssh -c blowfish
backupuser@backupserver.example.com dd
of=3D/backups/server/dump-usr-l0.gz

/sbin/dump -0uanf - /var |gzip -5 | ssh -c blowfish
backupuser@backupserver.example.com dd
of=3D/backups/server/dump-var-l0.gz

To restore, plug in your new fresh drive
/stand/sysinstall
fdisk it, add the bootloader (all part of the fdisk process)
then use disklabel to partition to your liking either as big or big
enough to hold your data

mount the new drive under something like /mnt-root /mnt-usr /mnt-var
cd /mnt-root
zcar /backups/server/dump-root-l0.gz | restore -f -
....should work or if it does not take it from the pipe, gzip -d the
file first and then  cd /mnt-root and restore -f
/backups/server/dump-root-l0

	---Mike


On Thu, 11 Dec 2003 08:59:47 +0100, in sentex.lists.freebsd.isp you
wrote:

>Hi
>
>I hope to find the right "gurus" here for my question.
>
>I have a server (A) which has a 9 GB SCSI boot disk. I would like to =
backup
>this disk
>in such a manner, that I can easily put the entire content on another =
disk
>(upon failure)
>of the disk. This needs as I understand boot loader, mbr information =
copied
>too.
>
>I'd guess dd could do this. But I cannot be completely sure that the 2 =
disks
>are
>geometrically equal (there both 9 GB SCSI but different vendors).
>
>What procedure would you suggest for doing this?
>
>Thanks,
>Arie
>
>
>
>
>_______________________________________________
>freebsd-isp@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-isp
>To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?thqgtvgfjmr5nq542dbfvc76r22h43625i>