teejee2008 / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
GNU Lesser General Public License v3.0
4.68k stars 281 forks source link

Cannot create Btrfs snapshot on Pop!_OS installation on Btrfs filesystem #633

Open tuxedlinux opened 4 years ago

tuxedlinux commented 4 years ago

Describe the bug Just installed Pop OS on a Btrfs filesystem. When I try to create a Btrfs snapshot, it refuses to do so. To Reproduce Steps to reproduce the behavior:

  1. Open up Timeshift
  2. Click on "BTRFS snapshots"
  3. Error message saying "btrfs-tools not found"

Expected behavior Expected to move on to the next step of setup

System:

wmutschl commented 4 years ago

have you done a sudo apt install btrfs-progs ?

wmutschl commented 4 years ago

I also have some guides and videos for btrfs on popos, if you are interested: https://mutschler.eu/linux/install-guides/

tuxedlinux commented 4 years ago

Thank you!

emanuc commented 4 years ago

It's a popOS installer problem, by default it doesn't create any subvolumes. To create snapshots with Btrfs you need to create subvolumes. To create and manage snapshots with Timeshift, it requires subvolumes "/@" and "/@home" on the top level. I have presented a bug on the popOS installer, to date unanswered: https://github.com/pop-os/distinst/issues/221

tuxedlinux commented 4 years ago

It's a popOS installer problem, by default it doesn't create any subvolumes. To create snapshots with Btrfs you need to create subvolumes. To create and manage snapshots with Timeshift, it requires subvolumes "/@" and "/@home" on the top level. I have presented a bug on the popOS installer, to date unanswered: https://github.com/pop-os/distinst/issues/221

Makes sense.

teejee2008 commented 4 years ago

PopOS uses Systemd-boot for managing boot. Timeshift only supports GRUB.

tuxedlinux commented 4 years ago

@teejee2008 makes sense. So that means you can't use Timeshift on Pop OS?

wmutschl commented 4 years ago

I am using Timeshift just fine on POP! I use a "trick" regarding systemd boot instead of grub, in the sense that I am rsyncing the efi partition into @ so I can restore it easily when needed. I use timeshift-autosnap-apt for this. I've outlined everything in the link I shared above.