linuxmint / 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.
2.43k stars 87 forks source link

Support Debian filesystem #83

Open tazihad opened 1 year ago

tazihad commented 1 year ago

If I install timeshift in Debian 11 with btrfs. I get error that timeshift don't support debian volume structure.

E: The system partition has an unsupported subvolume layout.  
Only ubuntu-type layouts with @ and @home subvolumes are currently supported.

It would be great if timeshift also support debian btrfs file structure. @rootfs

Alternative solution is, you let us select root or home filesystem manually.

There's a bug report in debian repo.

adonig commented 1 year ago

The same applies to Fedora Linux. It would be great if there was an option to configure timeshift to work with any disk layout.

It seems like the volume names "@" and "@home" are hardcoded:

https://github.com/linuxmint/timeshift/blob/22b0e16a265a0debf2227390520ada1954e3f093/src/Core/SnapshotRepo.vala#L199-L225

They should come from the config file instead. That way it would be easily possible to change them i.e. to "root" and "home" instead, which is the layout Fedora uses.

Aparichit0 commented 1 year ago

I hope Timeshift allows other subvolumes layouts or something similar that won't require reinstalling my system with complex partitioning.

Meanwhile there is an alternative for Timeshift that works with @rootfs https://github.com/linuxmint/timeshift/issues/157#issuecomment-1612536952