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.
1.53k stars 75 forks source link

User Password Required on Every Start #285

Open interconnectedMe opened 4 months ago

interconnectedMe commented 4 months ago

Hello Timeshift,

I'm not sure if this is a bug, or the way Timeshift is intended to work.

Probably user error as I've got little idea what I'm doing with GNU/Linux/KDE/Neon/Plasma/Ubuntu.........

I have had not much luck searching for e.g. 'permanently authorise Timeshift with my user password', and I can't see anything in the Readme.md about having to enter the user password each time Timeshift runs.

So I'm pretty sure I've done something dumb.

What Happens: Every time I login to my system Timeshift starts automagically, and I am prompted to enter my user password.
(
and every time I close, then re-start Timeshift I am also prompted for my user password)

Issue: As it is, I have to enter my password, then leave Timeshift open. If I close it, then I guess some kind of authorised session is terminated (?), and no scheduled snapshots are created.

I think it should work like: I am hoping to have 'boot' snapshots (and the hourly/weekly/monthly ones also), created automagically without me having to enter a password each time I log in.

Please do let me know if I need to provide Timeshift logs / or anything else that might help.

Regards, DR.

Edit

About Timeshift-gtk:

Timeshift-gtk 24.01.1

About my system - contents copied:

Operating System: KDE neon 6.0 KDE Plasma Version: 6.0.0 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.5.0-25-generic (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz Memory: 15.6 GiB of RAM Graphics Processor: llvmpipe Manufacturer: ASUS Product Name: All Series

mtwebster commented 4 months ago

Hi, Timeshift's user interface doesn't need to be running for backups to occur. Why it's launching at startup I'm not sure, and I'm not familiar with KDE either - if there's a way to define programs to run at startup, I'd check if timeshift is there, and remove/disable it.

Also, boot snapshots don't occur immediately after startup, it's delayed up to 10 minutes to avoid hogging resources when you're first logging in.

mostghost commented 4 months ago

(As it is, I have to enter my password, then leave Timeshift open.)

Ah ha, I think I know what your problem is. KDE, by default, has a feature that will re-open your desktop exactly the way you left it. It will open the same apps you had open before you closed. My theory is, by leaving timeshift open all the time in the background, KDE will open it again whenever you restart the system- which then prompts for password again, as expected.

Like mtwebster said, you don't need timeshift to be running and in fact having it running may be impeding backups as per https://github.com/linuxmint/timeshift/issues/267 . For what it's worth, the setting that I think was causing you problems was: Startup and Shutdown > Desktop Session > Session Restore .

interconnectedMe commented 4 months ago

Thanks mtwebster & mostghost for the pointers

It was me adding Timeshift to startup applications. I thought I needed to do this for it to run. User error ;-)

Have checked the session / login thing to make sure i have it set to blank / new session and not to load previously running apps.

Boot backup was there like you said, maybe 10 minutes or so after logging in.

So, all seems to be working as intended ;-)

Many thanks, DR