Hello!
I’ve decided to use btrfs snapshots as a way to back-up my Fedora 35 to an external drive (related article: Incremental backups with Btrfs snapshots - Fedora Magazine).
My intent is to create a full system backup (the backup of my /
directory).
First backup
Yesterday, I ran the following commands and everything worked as expected:
- Create a snapshot of
/
in/.snapshots/
sudo btrfs subvolume snapshot -r / /.snapshots/day1
- Send the snapshot to an external btrfs-formatted drive:
sudo btrfs send /.snapshots/day1 | sudo btrfs receive /run/media/rk/mydisk/bk
Subsequent backups
Now, let’s say that I want to create another snapshot of my entire system /
and save it in /.snapshots
again.
I’m a little bit concerned about creating another /
snapshot because the /.snapshots
directory contains my first snapshot (described in the “First backup” section).
Questions
- Is it okay to take snapshots of btrfs subvolumes that contain other btrfs snapshots?
- Will snapshots that contain other snapshots occupy lots of disk space?
- Do you have any suggestions regarding alternative snapshotting scenarios?
- How about creating a snapshot directly in another subvolume?
btrfs subvolume snapshot / /run/media/rk/mydisk/bk
- How about creating a snapshot directly in another subvolume?