Solved Create zfs recursive snapshot of zroot but exclude a mountpoint

Hi,

There were two threads about a similar issue, but I didn't understand what to do.
My simplified use case is this:

Code:
# zfs list
NAME                                  USED  AVAIL     REFER  MOUNTPOINT
zroot                                13.6G  48.4G       96K  /zroot
zroot/ROOT                           1.07G  48.4G       96K  none
zroot/ROOT/default                   1.07G  48.4G     1.07G  /
zroot/backups                          96K  48.4G       96K  /backups
zroot/tmp                            94.7M  48.4G     94.7M  /tmp
zroot/usr                            12.3G  48.4G       96K  /usr
zroot/usr/home                        556M  48.4G      556M  /usr/home

I'd like to create a snapshot for everything excluding the /backups mount point.
How to do that, since zroot/backups is part of zroot?
Do I have to create individual snapshots for
Code:
zroot/ROOT/default  
zroot/tmp
zroot/usr
and all the others?
 
I your case the most simple is to take recursive backups of datasets zroot/usr and zroot/var.
[ Note for a fresh install you can make other hierarchies. I have put mointpoint /usr on dataset zroot/ROOT/default/usr ]
 
Back
Top