| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Introducing Dokkio, a new service from the creators of PBworks. Find and manage the files you've stored in Dropbox, Google Drive, Gmail, Slack, and more. Try it for free today.

View
 

Pack Zeodb Example

Page history last edited by Elizabeth Leddy 9 years, 6 months ago
#!/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!"

Comments (0)

You don't have permission to comment on this page.