10
submitted 2 months ago* (last edited 2 months ago) by gpstarman@lemmy.today to c/linux4noobs@lemmy.world

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.

top 3 comments
sorted by: hot top controversial new old
[-] doughless@lemmy.world 2 points 2 months ago

If your snapshots are taken from your main subvolume, then they shouldn't be incremental backups, so it should be safe to delete ones from the middle. It does look like incremental backups are possible, though I've never used that feature: https://fedoramagazine.org/btrfs-snapshots-backup-incremental/

[-] gpstarman@lemmy.today 2 points 2 months ago

If your snapshots are taken from your main subvolume, then they shouldn't be incremental backups

So other snaps from other subvols are incremental backups?

[-] doughless@lemmy.world 1 points 2 months ago* (last edited 2 months ago)

Two snapshots taken from the same subvolume would not be incremental. For them to be incremental, a snapshot would need to be copied from another snapshot. From that article I linked, it looks like you have you use the send command to actually make an incremental snapshot.

this post was submitted on 05 Oct 2024
10 points (91.7% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1041 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 2 years ago
MODERATORS