Repository navigation
Releases
StateRestore 1.0.5
Repair another Haiku from one that works
Mount the partition of a Haiku that does not start (it shows as /Haiku1, say), run StateRestore from the Haiku that works, and choose the other one in the new System menu at the top of the window. Every mounted volume that holds a Haiku is listed, and Another folder… takes any other folder. From the command line: StateRestore --root /Haiku1 --list, and the same for --plan, --restore, --undo, --delete and --cleanup.
- Restore, Undo, Delete and Delete unrestorable then work on that system's states.
- No package daemon runs on a mounted partition, so a restore there also writes that system's list of active packages (the list it reads when it starts) and keeps what it took out as a new
state_<date>_<time>folder of that system, as the daemon would. Undo, or the boot menu, can go back. - Start from that system afterwards. Restart is greyed out there, because it would restart the system you are running.
- The partition must be mounted with write access. A folder without a Haiku in it, a read-only mount and the running system's own folder are refused with a message.
Fixed
- Undo last restore always answered "There is no restore to undo". It works again.
Packages
staterestore-1.0.5-1-x86_64.hpkgfor 64-bit Haiku andstaterestore-1.0.5-1-x86_gcc2.hpkgfor 32-bit Haiku.
Install
Install the package for your system for the whole system, not for "home".
StateRestore 1.0.4
Go back to an earlier state of Haiku's system packages without the boot menu.
Install
Two packages are attached:
staterestore-1.0.4-1-x86_64.hpkgis for 64-bit Haiku.staterestore-1.0.4-1-x86_gcc2.hpkgis for 32-bit Haiku (gcc 2 / hybrid).
Download the one for your system and install it for the whole system. It adds StateRestore to the Deskbar's Applications menu.
What's new since 1.0.3
- Delete unrestorable… is greyed out when there is nothing to delete.
Changes in 1.0.3 (if you skipped it): the states that cannot be restored are shown in a list of their own, "Cannot be restored",
dimmed and marked DAMAGED (the list of packages of the state is damaged, which a shutdown in the middle of a write can cause),
MISSING (package files the state needs are gone) or SAME (nothing to restore); selecting one explains why. Delete unrestorable covers
all three kinds and its confirmation counts each; a damaged state keeps its package files as sources.
Changes in 1.0.2: a damaged list of packages no longer fools it; a damaged current list is replaced by the packages folder.
Changes in 1.0.1: an application icon, and the Save syslog button is gone from the window (StateRestore --syslog still does it).
What it does
- Lists the earlier states Haiku keeps, with the current system on top. Each row has its date, its Haiku revision and how many packages
differ from now; the newest is marked PREVIOUS, and one with another Haiku OLDER or NEWER. The states that can be restored come first. - Select one to see what restoring it would change: packages that change version, are taken out or are put back.
- Restore swaps the packages. What it replaces is kept in
~/config/var/StateRestore/held/, and Undo last restore puts it back.
Restart afterwards: the kernel comes from thehaikupackage, so the old system starts with the next boot. - Delete selected… deletes the states you pick, after a confirmation that says how much space it frees and how many other
states could no longer be restored. - Delete unrestorable… deletes the states that cannot be restored (damaged, files missing, or the same as now), keeping the ones whose package files other states need.
- A command line too:
StateRestore --list,--plan,--restore,--undo,--delete,--cleanup,--syslog.
Limits
It only helps while the system still boots; a system that does not start needs the boot menu or a rescue disk. It handles the system
packages, not the ones in ~/config/packages. Deleting a state cannot be undone.
Files and SHA-256
407fb22e4b281bf89c70fad21453a12972f95224b2969cd7a52e582d97130e10 staterestore-1.0.4-1-x86_64.hpkg
43f70cdb0392c00c1a88bf8ff3a1ced74ad9092842acd5efd04bde4e74af2c08 staterestore-1.0.4-1-x86_gcc2.hpkg
Source
https://github.com/ablyssx74/StateRestore, tag v1.0.4. The packages are not signed. StateRestore is under the MIT license.
StateRestore 1.0.1
Go back to an earlier state of Haiku's system packages without the boot menu. It's for the cases where the boot menu is hard to reach (a UEFI machine, or a virtual machine whose display stays black in the loader) and for undoing an update that broke something.
Install
Two packages are attached:
staterestore-1.0.1-1-x86_64.hpkgis for 64-bit Haiku.staterestore-1.0.1-1-x86_gcc2.hpkgis for 32-bit Haiku (gcc 2 / hybrid).
Download the one for your system and install it for the whole system. It adds StateRestore to the Deskbar's Applications menu.
What's new since 1.0.0
- An application icon.
- The Save syslog to Desktop button is gone from the window.
StateRestore --syslogon the command line still does it.
What it does
- Lists the earlier states Haiku keeps, with the current system on top. Each row shows its date, its Haiku revision and how many packages differ from now. The newest is marked PREVIOUS, and a state with another Haiku is marked OLDER or NEWER. Only states that can be restored are shown.
- Shows what a restore would change before you do it: packages that change version, are taken out, or are put back.
- Restore swaps the packages. What it replaces is kept in
~/config/var/StateRestore/held/, and Undo last restore puts it back. Restart afterwards: the kernel comes from thehaikupackage, so the old system starts with the next boot. - Delete selected… deletes the states you pick, after a confirmation that says how much space it frees and how many other states could no longer be restored.
- Delete unrestorable… deletes the states that cannot be restored, and keeps the ones whose package files other states need.
- A command line as well:
StateRestore --list,--plan,--restore,--undo,--delete,--cleanup,--syslog.
Limits
- It only helps while the system still boots. A system that doesn't start needs the boot menu or a rescue disk.
- It handles the system packages, not the ones in
~/config/packages. - Deleting a state can't be undone.
SHA-256
598c8481e6edb69ff6fbd7c90bca37d3ff7799b1281289f70a86b78738513ac4 staterestore-1.0.1-1-x86_64.hpkg
1b906e93f575e5b4551ee38d0b7dd20bba212e2070d9afdaf6aeae76ed85c6db staterestore-1.0.1-1-x86_gcc2.hpkg
The packages are not signed. StateRestore is under the MIT license.
StateRestore 1.0.0
Go back to an earlier state of Haiku's system packages without the boot menu. Made for the cases where the boot menu is hard to
reach (a UEFI machine, a virtual machine whose display stays black in the loader) and for undoing an update that broke something.
Install
Two packages are attached:
staterestore-1.0.0-1-x86_64.hpkgis for 64-bit Haiku.staterestore-1.0.0-1-x86_gcc2.hpkgis for 32-bit Haiku (gcc 2 / hybrid).
Download the one for your system and install it for the whole system. It adds StateRestore to the Deskbar's Applications menu.
What it does
- Lists the earlier states Haiku keeps, with the current system on top. Each row has its date, its Haiku revision and how many packages
differ from now; the newest is marked PREVIOUS, and one with another Haiku OLDER or NEWER. Only states that can be restored are shown. - Select one to see what restoring it would change: packages that change version, are taken out or are put back.
- Restore swaps the packages. What it replaces is kept in
~/config/var/StateRestore/held/, and Undo last restore puts it back.
Restart afterwards: the kernel comes from thehaikupackage, so the old system starts with the next boot. - Delete selected… deletes the states you pick, after a confirmation that says how much space it frees and how many other
states could no longer be restored. - Delete unrestorable… deletes the states that cannot be restored, keeping the ones whose package files other states need.
- Save syslog to Desktop copies the system log,
listusb,listdev,unameand the list of active packages to a folder, to send to
someone. - A command line too:
StateRestore --list,--plan,--restore,--undo,--delete,--cleanup,--syslog.
Limits
It only helps while the system still boots; a system that does not start needs the boot menu or a rescue disk. It handles the system
packages, not the ones in ~/config/packages.
Files and SHA-256
933893037f63763147b78abdfc2c597c971d3186d648e857f4f28840280f63e1 staterestore-1.0.0-1-x86_64.hpkg
69dad7147b01a1e43a89cc27c63d5664b8bd0b35859e672830a7dc9398207e78 staterestore-1.0.0-1-x86_gcc2.hpkg
Source
https://github.com/ablyssx74/StateRestore, tag v1.0.0. The package is not signed. StateRestore is under the MIT license.