Pack Zeodb Example


#!/bin/bash

ZODB3_HOME="/opt/Zope-2.9/lib/python/"
PYTHONPATH="$ZODB3_HOME"
export PYTHONPATH

echo "starting to pack zeodbs..."

# here we have your basic pack - will default pack Data.fs (aka storage 1)
# -d means pack everything that is more than 5 days old
zpython /opt/Zope-2.9/bin/zeopack.py -p 8100 -h localhost -d 5

...

# here is an example of packing a zeodb instance with more client storages
zpython /opt/Zope-2.9/bin/zeopack.py -p 8103 -h localhost -d 5 -S 1
zpython /opt/Zope-2.9/bin/zeopack.py -p 8103 -h localhost -d 5 -S 2
zpython /opt/Zope-2.9/bin/zeopack.py -p 8103 -h localhost -d 5 -S 234

...

# you can even pack remote instances - neato!
zpython /opt/Zope-2.9/bin/zeopack.py -p 8106 -h 10.0.x.x -d 5 -S 14

echo "done!"