zfsonlinux / zfs-auto-snapshot

ZFS Automatic Snapshot Service for Linux
GNU General Public License v2.0
836 stars 241 forks source link

Document com.sun:auto-snapshot:$label #36

Open bernhardschmidt opened 9 years ago

bernhardschmidt commented 9 years ago

According to my understanding of the source code (and my short tests) you can skip specific snapshots to be generated by setting com.sun:auto-snapshot:$label to false (like com.sun:auto-snapshot does for all labels). This is not coumented anywhere.

dajhorn commented 9 years ago

@bernhardschmidt, right, this is something that can be described in the man page.

mk01 commented 9 years ago

what is even better@powerfull is the --default-exclude what inverts the logic and requires "true" for action, skip otherwise.

large trees with only specific interest for few FSs can be managed that way with literally no effort. I know it's already in man described, but despite that it took me a while to find how powerfull it really is.

(specially how this works with // and processing trees recursively (-r) - so big hierarchies can be managed(for snapshots) without actual edit of cron oneliner (using "//") or referring to multiple names on fast changing structures (like a shared app/web servers for XXXX changing accounts etc)).