Re: Cannot run backup script
Ed Leafe <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
On Jul 16, 2004, at 8:03 AM, Toby Dickenson wrote:
>> I'm now trying to automate making backups via a script that runs from
>> a cron job that fires early every morning. But when it runs, either
>> via
>> cron or manually, I get the following error:
>
> Can you share the script?
Sure:
#!/bin/sh
export PYTHONPATH='/usr/local/zope/2.7.1/lib/python'
cd /usr/local/zope/2.7.1/lib/python/DirectoryStorage
if [ $1 = "full" ]; then
python snapshot.py /usr/zopestorage - python backup.py prefix
ZopeBackup full
else
python snapshot.py /usr/zopestorage - python backup.py prefix
ZopeBackup inc "36 hours ag
fi
The cron job is set to pass the parameter "full" on Sundays, and "inc"
all other days.
> Which version are you using? This is one area that has changed
> dramatically
> (to be easier) in the latest beta release.
I'm still using 1.1.7, which is the same version I was using before
the crash and restoration.
> Alternatively, maybe something else is using currently snapshot
> mode...... I
> added the retry mechanism to snapshot.py after seeing this error if my
> backup
> cron job collides with the replication cron job.
If I run the backup command manually from the terminal, I get the same
results no matter when I run it, even if I run it several times one
after the other.
> The two lines of snapshot.py before this line are:
> # Unexplained exceptions in the line below? Did you forget
> # to apply the patch to ZEO mentioned in doc/install?
>
> If thats not it, a misconfigured snapshot.conf seems most likely.
I'm not running ZEO. My snapshot.conf reads:
http http://localhost:8080 /usr/zopestorage/config/access
The access file is located in /usr/zopestorage/config/, is
world-readable, and was created using zpasswd.py with the user name and
password for the admin of the site. The zope instance is running on
port 8080.
___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click