[SOLVED] Can I delete BTRFS snapshots from middle?

Let's say i made 10 snapshots on top of the base.

Now can i delete snap no. 5? Will the snaps after 5 will be affected?

Solved

Yes, one can delete consecutive snapshots. The data won't be deleted unless all snaps ( reference points ) get deleted.

Note: If you delete the original file and delete all the snapshots made when the file is still there, the file will get deleted permanently.

12 points · 2 comments · view on lemmy.world

2 Comments

her01n@programming.dev · 10 pts · 1y (1 reply)

Yes, you can delete arbitrary snapshot without other snapshot being affected. You can even delete the original subvolume and the snapshots made from it would be still accessible.

gpstarman@lemmy.today · 2 pts · 1y

Thank you.