Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ost.znap2

Znap2 is a universal ZoDB snapshotter. It allows making multiple snapshots of ZoDB database(s) and restoring the database(s) to any past snapshot.

Usage

Before we make any snapshots, we need to intialize the snapshot storage:

znap2 init <db-file> [...]

This creates .znap2 directory that will contain the configuration and all snapshots. Initially only configuration file is created and the length of all database files is recorded there.

After the storage is initialized we can make snapshots:

znap2 save <snapshot-id>

This will store the tail of each database file that the storage is tracking and a copy of its index file. This information is sufficient to restore the snapshot of ZoDB because all writing to the main database file always happens at the end.

To list available snapshots use the following command:

znap2 list

Some time later we can revert to an earlier stored snapshot:

znap2 restore <snapshot-id>

This will truncate the databases to their size at the time of initialization, then append the stored tails and replace the index files with stored copies of the index files.

Finally the snapshots that are no longer needed can be deleted with:

znap2 delete <snapshot-id>

Note that packing the database will invalidate all snapshots. If you need to pack the database, delete the storage and start over.

Metadata

Release files for ost-znap2 1.0b

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ost-znap2 1.0b
File Size Uploaded
ost-znap2-1.0b.tar.gz 3.8 kB Details

Release files / ost-znap2-1.0b.tar.gz

Download URL ost-znap2-1.0b.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2311eaab52027e156126709e699e1de85a4ff56c5e6ba80d5514bd59ac66cbc8
BLAKE2b-256 checksum
How to use checksums
df2971906964adb49b908bb87cbef0917b695f43f7611200f53ed74d6fa99872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0b This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page