> -----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: misc@openbsd.org
> 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?

Reply via email to