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.34k stars 84 forks source link

Question: Timeshift with LVM2 and LUKS2 #89

Open lamyergeier opened 1 year ago

lamyergeier commented 1 year ago

I am using LVM2 with LUKS2 installed on my SSD as per the instructions on Full_Disk_Encryption_Howto_2019 - Community Help Wiki on Ubuntu 22.04.

After creating LUKS on LVM, I created 1 physical volume, 1 volume group and 3 logical volumes (for root, home and swap), each with ext4 filesystem. I would like to have on my laptop backup of system restore, apart from external backup using Linuxmint/timeshift.

  1. Is it beneficial to create a separate volume group with a logical volume or should I create a logical volume in the existing volume group? Does separate volume group helps?
  2. Can Timeshift work with LUKS2? Will I be able to restore my operating system with the full disk encryption?
nandlab commented 1 year ago
  1. I do not think there is any benefit in creating a new volume group.
  2. I think Timeshift does not work with a LUKS partition directly. Instead your LUKS partition and LVM subvolumes should be mounted on the system and you should choose something like /dev/mapper/vg01-system_backup for the snapshot device in Timeshift.