ZFS-AUTO-SNAPSHOT(8)
β¨ NAME β¨
zfs-auto-snapshot β the girl that takes regular ZFS snapshots for you π
okay so bestie, welcome to the zfs-auto-snapshot(8) page from the System Administration Commands section. she's an 8, she's iconic, she's about to make your datasets immortal. π«Ά
π¦ SYNOPSIS π¦
zfs-auto-snapshot [options] [-l label] <'//' | name [name...]>
that's it. that's the whole vibe check. β¨
πΈ DESCRIPTION πΈ
zfs-auto-snapshot automatically creates, rotates, and destroys snapshots for all your ZFS datasets. no cap. she does the whole thing by herself.
and she's compatible with both zfsonlinux and zfs-fuse β so whoever your ZFS provider is, she's not gonna ghost you. π
π OPTIONS π
like forty options and every single one is serving. let's go. π
--default-excludeβ so by default,zfs-auto-snapshotsnapshots all datasets except the ones where the user-propertycom.sun:auto-snapshotis set tofalse. this option flips the whole thing around and requirescom.sun:auto-snapshotto be set totrueinstead. reversal arc, slay.-d,--debugβ prints debugging messages. she's telling you everything, fr fr. π-e,--event=EVENTβ sets thecom.sun:auto-snapshot-descproperty to EVENT. label your moment bestie.--fastβ uses a fasterzfs listinvocation. speed demon energy. β‘-n,--dry-runβ prints out the actions without actually doing anything. window shopping, no checkout. ποΈ-s,--skip-scrubβ do not snapshot filesystems that live in scrubbing pools. let them scrub in peace bestie.-h,--helpβ prints the usage message. the "help me help you" option. π-k,--keep=NUMβ keep NUM recent snapshots and destroy the older ones. the rotation queen. π-l,--label=LABβ LAB is usually'hourly','daily', or'monthly'. pick your era.-p,--prefix=PREβ PRE is'zfs-auto-snap'by default. change it if you want a different name for your babies.-q,--quietβ suppresses warnings and notices at the console. shhh. π€«--send-full=Fβ send zfs full backup. Unimplemented. girl is not built yet, don't come for her. π--send-incr=Fβ send zfs incremental backup. Unimplemented. same situation. π--sep=CHARβ use CHAR to separate the date stamps in snapshot names. pick your separator, make it cute.-g,--syslogβ writes messages into the system log. receipts, but in/var/log. π§-r,--recursiveβ snapshot the named filesystem and all descendants. the whole family tree, no one left behind. π-v,--verboseβ prints info messages. she's chatty and we love that.--pre-snapshot=COMMANDβ a command to run before each dataset is snapshotted. it gets passed the dataset and snapshot name. and if it returns non-zero? snapshotting this dataset is aborted. like, dead stop. β οΈ--post-snapshot=COMMANDβ a command to run after each dataset is snapshotted. it also gets passed the dataset and snapshot name. aftercare, we love to see it. π--destroy-onlyβ do not create new snapshots, but do destroy older snapshots. also, heads up: this has no effect unless used with-k. bestie that's important.
a non-obvious use may be construction of cron jobs or scripts that run pre-snapshot command(s), then run zfs-auto-snapshot (without -k) to quickly snapshot all datasets, then run post-snapshot command(s) and clean up with zfs-auto-snapshot --destroy-only. π
iykyk.
nameβ filesystem and volume names, or'//'for all ZFS datasets. the'//'is the "everybody" option. β¨
π₯ SEE ALSO π₯
and that's the whole page bestie!! this absolute icon lives in zfs-auto-snapshot.sh, dated June 16, 2013 β and yeah, ZFS-AUTO-SNAPSHOT(8) is her full government name. go forth and snapshot responsibly ππβ¨
π¦ where this page comes from
- alpine 3.24: zfs-auto-snapshot-doc 1.2.4-r2 Β· GPL-2.0-or-later
- debian bookworm: zfs-auto-snapshot 1.2.4-2 Β· GPL-2.0-or-later
- debian trixie: zfs-auto-snapshot 1.2.4-2 Β· GPL-2.0-or-later
- ubuntu jammy: zfs-auto-snapshot 1.2.4-2 Β· GPL-2.0-or-later
- ubuntu noble: zfs-auto-snapshot 1.2.4-2 Β· GPL-2.0-or-later
- ubuntu questing: zfs-auto-snapshot 1.2.4-2
- ubuntu resolute: zfs-auto-snapshot 1.2.4-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: zfs-auto-snapshot 1.2.4-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms