Luckily, restoring is not something i've had to do too often so I don't have a pre-written script for doing it but after booting from the CD and dropping to a shell I would use something along the lines of
--- BEGIN --- mount /dev/wd0a /mnt cd /mnt gzcat /scratch/backup/root.dump.gz | restore -r -f - cd /mnt/home gzcat /scratch/backup/home.dump.gz | restore -r -f - cd /mnt/var gzcat /scratch/backup/var.dump.gz | restore -r -f - cd /mnt/cvs gzcat /scratch/backup/cvs.dump.gz | restore -r -f - /usr/mdec/installboot /usr/mdec/boot /usr/mdec/biosboot wd0 --- END --- These are pretty much from memory so they may not be exactly right. Also if you boot from a CD you may need to remount /tmp somewhere so that restore has enough space to work. The added complication in my particular case is that everything other than / is located on a ccd(4) disk and the ccd driver is not in the RAMDISK kernel. Can't recall how I got round this last time but I do remember it causing me a few problems initially. Hope this helps - Simon --- "Will H. Backman" <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of > > Simon Slater > > Sent: Friday, May 20, 2005 1:09 PM > > To: Stephan Wehner > > Cc: [email protected] > > Subject: Re: Safe development > > > > Using cvs to back up the system is going to be > very > > inefficient, especially with binary files. I'd > suggest > > going with your idea of a system snapshot before > any > > major system changes. A straightforward dump(8) > and > > restore(8) is easy to set up and your backed up > data > > can also be restored just by booting from any > OpenBSD > > CD providing it is stored on a local disk. > > > > I run the following script from the cron every > Sunday > > night so that I can always restore back to a few > days > > ago if the worst happens. (The /scratch partition > is a > > separate disk to the rest of the system) > > > > Works well enough for me. > > > > - Simon > > > > --- BEGIN --- > > > > #!/bin/sh > > > > dump -af - /dev/wd0a | gzip > > > /scratch/backup/root.dump.gz > > dump -af - /dev/ccd0a | gzip > > > /scratch/backup/usr.dump.gz > > dump -af - /dev/ccd0b | gzip > > > /scratch/backup/var.dump.gz > > dump -af - /dev/ccd0d | gzip > > > /scratch/backup/home.dump.gz > > dump -af - /dev/ccd0g | gzip > > > /scratch/backup/cvs.dump.gz > > > > disklabel wd0 > /scratch/backup/disklabel_wd0.txt > > disklabel wd1 > /scratch/backup/disklabel_wd1.txt > > disklabel ccd0 > > /scratch/backup/disklabel_ccd0.txt > > > > cp /etc/ccd.conf /scratch/backup > > > > dd if=/dev/rwd0a of=/dev/rwd1a bs=16b seek=1 > skip=1 > > conv=noerror > > fsck -y /dev/rwd1a > > > > --- END --- > > > > Care to include the restore procedure you would use? > > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

