UFS snapshot before sysupdate

Hello.
Under ZFS before i run system update I'm using filesystem snapshot mechanism (zfs snapshot -r/zfs rollback on ROOT) to protect myself if something goes wrong.

But I don't know how to do this under UFS. What is the proper way to do it under UFS?

My fs system layout looks like this:
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/MSDOSBOOT on /boot/msdos (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
FreeBSD 13.1 RELEASE

regards
 
I would do an dump to external device before you run freebsd-update upgrade if you really care about your data..
Minor version upgrades are pretty smooth. Major version upgrades I do a dump and backup.
 
Our very own vermaden has the most detailed snapshot article.
 
As far as I know, UFS snapshots have no rollback.
But you can mount any snapshot as a readonly filesystem, and copy or sync any required files from the snapshot to the filesystem of origin.
UFS snapshots is a cheap "time machine" that allows you to see the saved state of a filesystem.
If you need to restore a lot of files from UFS snapshot then try to use rsync() to copy changed files back.
mksnap_ffs()
 
Back
Top