[ZODB-Dev] Re: roll back filestorage zodb to a certain date?
tseaver at palladion.com
Wed Mar 21 09:59:10 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Jim Fulton wrote:
> On Mar 21, 2007, at 6:41 AM, Chris Withers wrote:
>> Hi All,
>> Is there any existing method or script for rolling back a ZODB
>> (filestorage-backed in this case,
> Back end to what?
>> if that makes it easier) to a certain point in time?
> Do you actually want to modify the file? Or do you simply want to
> access it as of a particular time.
> There is already a mechanism for opening a file storage as of a
> particular time.
>> eg: Make this Data.fs as it was at 9am this morning
>> If not, I'll be writing one, where should I add it to when I'm done?
> Before we talk about adding it anywhere, I'd like to see the
> semantics defined more clearly.
1. Open the existing file in time-travel mode (readonly, so that it
loads no transactions later than the given point). The 'stop'
parameter to the FileStorage initializer is the one which
2. Open a new, writable filestorage.
3. Run 'copyTransactionsFrom' on the new storage, passing the old,
and then close the storages.
4. Restart his Zope with the new storage.
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v188.8.131.52 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the ZODB-Dev