Skip to main content

Pack ZODB databases without running Zope or ZEO

Project description

==================
Pack ZODBs Offline
==================

Pack a ZODB storage without running any part of the Zope application
server. Only an appropriate version of ZODB3 for the ZODB storage is
required. Apply only to copies of ZODB storages, not ZODB storages
currently in use.

Install the distribution::

$ python setup.py install

Then use the offlinepack script to pack a copy of your ZODB::

$ offlinepack /path/to/Data-copy.fs

Use the --help option for more details::

$ offlinepack --help
usage: offlinepack [options] PATH...

Pack ZODB storages without running Zope or ZEO

options:
-h, --help show this help message and exit
-d DAYS, --days=DAYS remove revisions more than DAYS old [default: 0]
-s DOTTED, --storage=DOTTED
use the storage constructor at DOTTED [default:
ZODB.FileStorage.FileStorage]

zc.buildout
-----------

A buildout.cfg is included that will install the offlinepack script
to the buildout. The buildout makes it possible to quickly use the
offlinepack script without modifying the system python installation::

$ svn co svn://svn.zope.org/repos/main/z3c.offlinepack/trunk z3c.offlinepack
$ cd z3c.offlinepack
$ python bootsrtap/bootsrtap.py -v
$ bin/buildout -v
$ bin/offlinepack /path/to/Data-copy.fs

The buildout.cfg file can also be modified to use a specific version
of ZODB3. This is uesful if you need to use offlinepack without
migrating the ZODB to a newer version of ZODB3. Add the version
specifier to the offlinepack section of buildout.cfg. For example, to
use offlinepack with Zope 2.9, use the following offlinepack section.

[offlinepack]
recipe = zc.recipe.egg:scripts
eggs = z3c.offlinepack
ZODB3<3.7-dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z3c.offlinepack-0.1.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z3c.offlinepack-0.1.3-py2.4.egg (7.2 kB view details)

Uploaded Egg

File details

Details for the file z3c.offlinepack-0.1.3.tar.gz.

File metadata

File hashes

Hashes for z3c.offlinepack-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ec9b0bd1eee94a9e06d17491c17909089badb6336a43afbd819a37d21447e573
MD5 48ffb3445c0da8401cee3d43b6e424f5
BLAKE2b-256 b5b54571c8102ab86955acd4b1a4da49b6da807348ed0aa4427a8febf525a466

See more details on using hashes here.

File details

Details for the file z3c.offlinepack-0.1.3-py2.4.egg.

File metadata

File hashes

Hashes for z3c.offlinepack-0.1.3-py2.4.egg
Algorithm Hash digest
SHA256 cd057ea4e098e3dd4b95a63a139ff1a7c53c017fb122e99990325a55adcdc5b9
MD5 cae9e104dea7d70fe5ee41f60ee5d8fb
BLAKE2b-256 f53ec69e58a2545b9105b0e1461125269a871334ab5b3054e49e68aa698455d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page