On Sat, May 26, 2007 at 06:48:52PM +0200, Svein Halvor Halvorsen wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello list! > > Is it possible to rollback a file system snapshot, i.e. restore the > file system to the state it was in at the time a mksnap_ffs command > was issued?
You can mount the snapshot, and then copy the files back to the original fs. Note that cp can preserve flags, but not ACLs AFAIK. > User scenario: > > Before a major upgrade (eg. releng->current, portupgrade -a, etc), > it would be nice to mksnap_ffs, and then after the upgrade be able > to either delete the snapshot if all went well, or rollback to the > snapshot. You should use dump(8) in this case. Create level 0 dumps of your filesystems and store them somewhere. You can dump live filesystems with dump's -L flag. If you botch the upgrade, you can use restore(8) to revert your filesystems to the situation before the upgrade. Note that you should really make regular dumps of your filesystems as backups anyway! Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
Description: PGP signature