Missing content after an Undo

I've imported content from a Plone 4 site into a standard Plone 6 site, converted the HTML to blocks and started reworking the front page and sections header pages. I deleted a folder but later decided to Undo the delete and somehow lost 4 hours of edits. I don't see all the work I did yesterday and today in the Undo log. And Digital Ocean only backs up weekly not daily. Any ideas of how to restore the changes?

Mike Metcalfe via Plone Community wrote at 2023-10-17 15:23 +0000:

I've imported content from a Plone 4 site into a standard Plone 6 site, converted the HTML to blocks and started reworking the front page and sections header pages. I deleted a folder but later decided to Undo the delete and somehow lost 4 hours of edits. I don't see all the work I did yesterday and today in the Undo log. And Digital Ocean only backs up weekly not daily. Any ideas of how to restore the changes?

Maybe, dm.historical can help (if packing has not yet removed
the old state).

dm.historical allows you to retrieve an object
via a "historical connection" (i.e. as it has been
at a given former time). You can then copy this historical state
via the object's _getCopy method
and replace the current object with the copy (or recreate the object
from the copy, if it has been deleted).
Should you use low level API to replace an object, do not forget
to reindex the object and its descendants.

Meanwhile, the ZODB supports historical connections
out of the box. Thus, you might be able to recover
without dm.historical.

Thanks @dieter. I'm using zope 5.8.5 and wsgi. Previously I would would run ./bin/instance debug

But the debug in ./bin/runwsgi --debug configfile is not the same and doesn't take me to the prompt. Do you know how to do this with wsgi?

Mike Metcalfe via Plone Community wrote at 2023-10-17 17:35 +0000:

But the debug in ./bin/runwsgi --debug configfile is not the same and doesn't take me to the prompt. Do you know how to do this with wsgi?

With WSGI, you have 2 different scripts for server (i.e. WSGI) mode
and interactive/script mode.
That latter is called zconsole.
You typically call is via zconsole {debug|run} etc/zope.conf.

Thanks @dieter