Back when I used UFS filesystems, I could exclude selected directories from being dumped by turning their nodump flag on. Now that I've converted to ZFS, I'm wondering if there is an equivalent way to accomplish this with ZFS? That way I could just take a recursive snapshot of zroot and it would exclude those datasets I don't want to snapshot (for obvious reasons) like zroot/usr/obj, zroot/usr/src, zroot/usr/ports, etc. After searching Google and reading through as much ZFS stuff as I could find, I don't see any ZFS property that would provide the same thing.
Thinking out loud, I guess I could take a recursive snapshot on zroot and then immediately destroy the datasets I don't want to snapshot, but this seems inelegant; or I could just snapshot the specific datasets I want. I'll be sending them to an external zpool for backup. However, I like the idea of taking a snapshot of the whole zroot, as this would ensure I've got a snapshot of everything except what I specifically want to exclude. If I snapshot only certain datasets, I'm fearful I might find out too late that I have missed something.
From my reaseach, ZFS on Solaris seemed to have a way to do this through a com.sun:auto-snapshot property that could be set to false for a dataset. I don't see anything like that on FreeBSD.
Thinking out loud, I guess I could take a recursive snapshot on zroot and then immediately destroy the datasets I don't want to snapshot, but this seems inelegant; or I could just snapshot the specific datasets I want. I'll be sending them to an external zpool for backup. However, I like the idea of taking a snapshot of the whole zroot, as this would ensure I've got a snapshot of everything except what I specifically want to exclude. If I snapshot only certain datasets, I'm fearful I might find out too late that I have missed something.
From my reaseach, ZFS on Solaris seemed to have a way to do this through a com.sun:auto-snapshot property that could be set to false for a dataset. I don't see anything like that on FreeBSD.