System Restore script

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
User avatar
fredx181
Posts: 2561
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

System Restore script

Post 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 13 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
Screenshot(1).png (33.22 KiB) Viewed 396 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
    Screenshot.png (30.35 KiB) Viewed 396 times
    Example choice of restore points (which are created earlier) after choosing RESTORE :
    Screenshot(3).png
    Screenshot(3).png (51.97 KiB) Viewed 396 times
dancytron
Posts: 653
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 422 times
Been thanked: 190 times

Re: System Restore

Post by dancytron »

I've used this a couple of times.

Works as advertised.

Dan

williwaw
Posts: 1594
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: System Restore

Post by williwaw »

nice development.
can you roll foreward again if you dont like the restore point you chose?

User avatar
rockedge
Site Admin
Posts: 5711
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1990 times
Been thanked: 2097 times
Contact:

Re: System Restore

Post 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.

User avatar
fredx181
Posts: 2561
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

Re: System Restore

Post 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.

User avatar
fredx181
Posts: 2561
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

Re: System Restore script

Post 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
Third column "Info" added
Screenshot.png (96.04 KiB) Viewed 152 times
Post Reply

Return to “DebianDogs”