Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. You can prevent the removal of a ZFS snapshot by using the hold subcommand

You can prevent the removal of a ZFS snapshot by using the hold subcommand

Scheduled Pinned Locked Moved Uncategorized
1 Posts 1 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fbfortune@mastodon.bsd.cafeF This user is from outside of this forum
    fbfortune@mastodon.bsd.cafeF This user is from outside of this forum
    fbfortune@mastodon.bsd.cafe
    wrote last edited by
    #1

    You can prevent the removal of a ZFS snapshot by using the hold subcommand.
    For example, to prevent the snapshot called milestone from deletion, run the
    following command:

    # zfs hold milestone_hold mypool/projects@my_milestone

    The "zfs holds" command will list all current snapshots that are protected
    this way (-r for a recursive list):

    # zfs holds -r mypool

    The TIMESTAMP column in the output of the above command is from when the
    hold was created, not the snapshot it holds. The "zfs destroy" command will
    echo a "dataset is busy" message on the console when it encounters a hold.
    Use "zfs release" to release the hold on the snapshot:

    # zfs release milestone_hold mypool/projects@my_milestone

    -- Benedict Reuschling <bcr@FreeBSD.org>

    1 Reply Last reply
    1
    0
    • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups