ZFS-HOLD(8)
💖 ZFS-HOLD(8) 💖
okay bestie, welcome to zfs-hold — it's part of the System Manager's Manual and it's literally the girl who holds your snapshots so nobody can delete them. iconic behaviour honestly. 🫶
✨ NAME ✨
zfs-hold — hold ZFS snapshots to prevent their removal
🌸 SYNOPSIS 🌸
zfs hold [-r] tag snapshot…
zfs holds [-rHp] snapshot…
zfs release [-r] tag snapshot…
🎀 DESCRIPTION 🎀
🦋 zfs hold [-r] tag snapshot…
Adds a single reference, named with the tag argument, to the specified snapshots. no cap, that's it. Each snapshot has its own tag namespace, and tags must be unique within that space — so don't be out here duplicating your tag names on the same snapshot, it's giving messy. 💅
If a hold exists on a snapshot, attempts to destroy that snapshot by using the zfs destroy command return EBUSY. so like… your snapshot is protected, periodt. 💀
-r— Specifies that a hold with the given tag is applied recursively to the snapshots of all descendent file systems. it's giving "and the whole family too". 👑
🌈 zfs holds [-rHp] snapshot…
Lists all existing user references for the given snapshot or snapshots. this is the receipts-listing command, fr fr. 🧚
-r— Lists the holds that are set on the named descendent snapshots, in addition to listing the holds on the named snapshot.-H— Do not print headers, use tab-delimited output. clean, no fluff, lowkey perfect for scripting. ✨-p— Prints holds timestamps as Unix epoch timestamps.
🍓 zfs release [-r] tag snapshot…
Removes a single reference, named with the tag argument, from the specified snapshot or snapshots. The tag must already exist for each snapshot — if it's not there, there's nothing to let go of, bestie. 😭
If a hold exists on a snapshot, attempts to destroy that snapshot by using the zfs destroy command return EBUSY.
-r— Recursively releases a hold with the given tag on the snapshots of all descendent file systems. the whole bloodline gets un-held. 🦋
💜 SEE ALSO 💜
so yeah, hold it, list it, release it. main character energy in three commands. 🌟
OpenZFS — November 8, 2022 🎀 mwah, love u, go hold some snapshots bestie 💖✨
📦 where this page comes from
- alpine 3.23: zfs-doc 2.4.4-r0 · CDDL-1.0
- alpine 3.24: zfs-doc 2.4.4-r0 · CDDL-1.0
- nixos 26.05: zfs-user 2.4.4
- nixpkgs unstable: zfs-user 2.4.4
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5 · CDDL-1.0
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5.1 · CDDL-1.0
- ubuntu stonking: zfsutils-linux 2.4.4-1ubuntu4 · CDDL-1.0
- 📜 the page's license: CDDL-1.0
- Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved
- Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
- Copyright (c) 2011, 2019 by Delphix. All rights reserved
- Copyright (c) 2013 by Saso Kiselkov. All rights reserved
- Copyright (c) 2014, Joyent, Inc. All rights reserved
- Copyright (c) 2014 by Adam Stevko. All rights reserved
- Copyright (c) 2014 Integros [integros.com]
- Copyright 2019 Richard Laager. All rights reserved
- Copyright 2018 Nexenta Systems, Inc
- Copyright 2019 Joyent, Inc
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms