Page 1 of 1
System Restore script
Posted: Sat Feb 24, 2024 5:10 pm
by fredx181
*** System Restore ***
Well..., sort of
Here's a script for to create a timestamped restore point from the save storage, and/or restore to that point of time.
(earlier made similar for KLV viewtopic.php?p=103935#p103935, this is adapted for Debian Dog like systems, also should work with the Starter Kit: viewtopic.php?t=644)
EDIT: Update 2024-03-06 new restore-sys script attached below see for changes info: viewtopic.php?p=113526#p113526
- restore-sys.gz
- Updated 2024-03-06 Remove fake .gz extension and make executable
- (8.33 KiB) Downloaded 38 times
Not required to run from terminal, just "click" on restore-sys script (after removing fake.gz and make executable), it's GUI based (using yad dialogs, depends on it).
It works only when booted with the "porteus-boot" way, with changes enabled, e.g. on the kernel commandline changes=/.... or changes=EXIT:/... (save at shutdown or on demand)
- Screenshot(1).png (33.22 KiB) Viewed 742 times
- Restoring (once created restore point(s) ) can be done only once (reboot recommended after restoring).
- Creating restore points is unlimited (i.e. making changes in the system > create new restore point ... can be repeated)
A "restore_history" log file will be created in the same directory as the changes folder (or e.g. changes.dat savefile), option to add extra info (will show in "restore_history" log file) :
- Screenshot.png (30.35 KiB) Viewed 742 times
Example choice of restore points (which are created earlier) after choosing RESTORE :
- Screenshot(3).png (51.97 KiB) Viewed 742 times
Re: System Restore
Posted: Sat Feb 24, 2024 9:04 pm
by dancytron
I've used this a couple of times.
Works as advertised.
Dan
Re: System Restore
Posted: Sat Feb 24, 2024 9:19 pm
by williwaw
nice development.
can you roll foreward again if you dont like the restore point you chose?
Re: System Restore
Posted: Sat Feb 24, 2024 10:25 pm
by rockedge
can you roll forward again if you don't like the restore point you chose?
Yes I think so, as long as there is a restore point for the snapshot one should be able to restore the system by selecting one, upward or downward.
Re: System Restore
Posted: Sun Feb 25, 2024 9:18 am
by fredx181
rockedge wrote: Sat Feb 24, 2024 10:25 pm
can you roll forward again if you don't like the restore point you chose?
Yes I think so, as long as there is a restore point for the snapshot one should be able to restore the system by selecting one, upward or downward.
Yes, that's right, when you restore, the original save will get a timestamp too (current time) and extension .bak, it can be chosen later (to revert back), but needs rebooting first, as restoring can only be done once during a session.
Re: System Restore script
Posted: Wed Mar 06, 2024 5:43 pm
by fredx181
*** Updated restore-sys script ***
New attached at first post, change is mostly that the "Restore" dialog has third column "Info" that will show Restored or Created and the info that was earlier provided.
(reading from log file "restore_history").
- Third column "Info" added
- Screenshot.png (96.04 KiB) Viewed 498 times