Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say I have a dataset with 100 snapshots and want to rm -rf all folders named "cache" in all snapshots.

I want to actually free up the space, not just hide it away in layers of snapshots, so making a clone and removing from that and then taking a new snapshot doesn't seem to do what I want.

Any semi-automatical way do that? Some wrapping around zfs list -t snapshot, zfs clone, zfs promote, zfs snapshot?

(cross-posted to as well)


merged by Chopper3 Jul 22 '11 at 15:49

This question was merged with ZFS: Removing files from snapshots? because it is an exact duplicate of that question.

migrated from Jul 22 '11 at 15:37

This question came from our site for computer enthusiasts and power users.

I see this was moved, so I guess is now primary. – Tino Didriksen Jul 22 '11 at 15:43

Browse other questions tagged or ask your own question.