User:Nathanlkoch/Tutorials/Btrfs Bootable Backups with Snapshots and Grub

From Gentoo Wiki
Jump to:navigation Jump to:search

Bootable Btrfs Snapshots

You can create snapshots of your partition sub volumes which you can recover from later or create chronological backups for safe keeping.

As per the User:Nathanlkoch/Tutorials/Btrfs Drive Migration I made. You can manually create snapshots or you can use a tool like Snapper.

To boot from them. You will need grub-btrfs.

Install Grub-btrfs

root #emerge -av app-eselect/eselect-repository
root #eselect repository enable guru
root #emerge --sync
root #emerge --ask --verbose grub-btrfs

Now whenever you updated grub with a

root #grub-mkconfig -o /boot/grub/grub.cfg

It will detect your bootable sub volumes. You can also set it to detect them automatically and add them.

The config file for grub-btrfs is located at "/etc/default/grub-btrfs/config".