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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Pack Zeodb Example

Page history last edited by Elizabeth Leddy 13 years, 8 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.