Advertisement
c2c2_

BTRFS: Delete snapshots by id range

Feb 9th, 2025 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. # Delete a range of btrfs snapshots by id
  2.  
  3. for i in $(seq 4974 5108); \
  4. do sudo btrfs subvolume delete -i $i /mnt/pool/.snapshots; \
  5. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement