timeshift
timeshift copied to clipboard
Option to shutdown after restore instead of reboot
Is your feature request related to a problem? Please describe. It would be nice to have the option to shutdown after a restore instead of performing a reboot.
Describe the solution you'd like Maybe a command-line flag to specify that you want the computer to shutdown after the restore has completed.
Additional context We are trying to use Timeshift for deepfreeze-like functionality. We'd like to restore from snapshot on each shutdown so that the user is presented with a freshly restored snapshot next time the computer is booted.
Currently the application reboots after a restore, so trying to use Timeshift in this fashion will cause the computer to reboot when a shutdown is requested.
This is a free application created in my spare time. Consider making a donation to sponsor the work for your request.
I'd be happy to make a donation to sponsor this feature request. Please assign a value and let me know! Thank you.
First a clarification - I've written something here, just to realize it was just causing a segmentation fault :) apologies!
So now again, on a clean sheet - as a workaround you may sabotage the reboot -f part by replacing it with a nonexistent command, then decide what to execute right after the restore is done (timeshift will silently fail due to the missing command), example:
# the replacent string should be the same length, requires a manual reboot in the end
sed -i.bak "s@reboot -f@_________@" /usr/bin/timeshift
The proper fix/feature would need to add this into the configuration. While it doesn't look hard to do, will probably take its time, I will see to add a PR whenever I have the time to look into it.
And certainly donate, I certainly will, this project saved me countless hours and frustration after stupid mistakes!
