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.38k stars 86 forks source link

Provide guidance if restoring across reinstalls (new UUID for LUKS) #302

Open EricCousineau-TRI opened 4 months ago

EricCousineau-TRI commented 4 months ago

Is your feature request related to a problem? Please describe. Relates #301

During experimentation, I found that I had borked my system, and wanted to "start from scratch" by reinstalling, and then attempting to do a snapshot restore. Of course, I'm realizing that this is perhpas not a supported workflow, as the OS install probably depends on the root partition UUID, at least for LUKS encryption.

Describe the solution you'd like Options, in ordered by my perceived effort, least to most:

(a) Add documentation that says "beware if you do this, it'll break"

(b) Add documentation with guidance on "here's how you can maybe fix it it" (I have no idea if these actually work) (b.1) use sudo cryptsetup luksUUID <dev> --uuid <uuid> for encrypted devices, and cross your fingers (b.2) edit things like /etc/crypttab, /boot/grub/grub.cfg, and replace <old uuid> with <new uuid>, and cross your fingers

(c) Detect that UUID list has changed from backup to restore, notify user that it could be broken, and attempt best effort "replace" (i.e., restore, replace UUIDs, and cross your fingers).

Describe alternatives you've considered N/A

Additional context Relates #301