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 http://serverfault.com/questions/293009 as well)

link
I see this was moved, so I guess serverfault.com/questions/293009 is now primary. – Tino Didriksen Jul 22 '11 at 15:43
feedback

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.

Browse other questions tagged or ask your own question.