Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)

share

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 superuser.com 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 serverfault.com/questions/293009 is now primary. –  Tino Didriksen Jul 22 '11 at 15:43

Browse other questions tagged or ask your own question.