wmutschl / timeshift-autosnap-apt

Timeshift auto-snapshot script for Ubuntu and Debian based systems which creates snapshots of your system with timeshift before a package install, remove or upgrade using DPkg::Pre-Invoke hook in apt. Fork of timeshift-autosnap from AUR.
MIT License
154 stars 20 forks source link

Prevent certain snapshots from being deleted #10

Open Herschenglime opened 3 years ago

Herschenglime commented 3 years ago

Hello! Is there a way to mark a snapshot created by this script to not be automatically removed?

Currently I'm troubleshooting nvidia drivers, which involves multiple apt operations, so I want to keep the very first autosnap that was taken around just in case I need to revert. I changed the comment in the timeshift gui, but I'm not sure if that's enough to make the script pass over it when performing its automatic deletion operations.

Thanks for your help!

EDIT: Looking at the script, it seems that it indeed does search for the autosnap comment when deciding what to delete, but I'm not 100% certain in my analysis.