===========
bda.zeopack
===========
Overview
========
Packs one or more databases/ storages on one or more ZEO-Servers (Zope Database
Storages on Zope Enterprise Objects Server).
Compatibility
=============
Tested with eggs releaes of ZODB2 >=3.8 and Zope 2.9, 2.10 (latest) as
tgz-release.
Installation
============
Install it using ``easy_install`` or ``zc.buildout``. Example for zc.buildout::
[buildout]
parts = zeopack
[zeopack]
recipe = repoze.recipe.egg:scripts
eggs = bda.zeopack
If youre using Zope with a version below 2.11 (like 2.10 or 2.9) the buildout
gets a bit more complex::
[buildout]
parts = zope zeopack
[zope]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.9.11/Zope-2.9.11-final.tgz
# url = http://www.zope.org/Products/Zope/2.10.9/Zope-2.10.9-final.tgz
fake-zope-eggs = true
additional-fake-eggs = ZEO
[zeopack]
recipe = repoze.recipe.egg:scripts
eggs = bda.zeopack
initialization = sys.path.append('${zope:location}/lib/python')
Usage
=====
Create a configuration file. If no location is given as first argument
bda.zeopack consider the file at ``/etc/zeopack.cfg``.
The format of the file follows Python ConfigParser format. It looks like::
[MY.DOMAIN.TLD_OR_IP_ADDRESS:PORT]
day = NUMBER_OF_DAYS_TO_KEEP
storages =
STORAGENAME
STORAGENAME
Example::
[127.0.0.1:8100]
days = 1
storages =
storage1
storage2
storage4
[127.0.0.1:8200]
days = 7
storages =
project1
project2
[storage.bluedynamics.com:8100]
days = 1
storages =
root1
mountr1m1
mountr1m2
root2
mountr2m1
...
Todo:
=====
* better parsing of argv
* support authentication
* pipe file via stdin instead of filename
Credits
=======
* Copyright 2008-2010, BlueDynamics Alliance Austria
* Concept and code
* Jens W. Klein <jens@bluedynamics.com>, Klein & Partner KG
=======
License
=======
Copyright (c) 2008-2010, BlueDynamics Alliance, Austria
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the BlueDynamics Alliance nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.