Subject RE: [ib-support] GBAK and crontab
Author Michael Weissenbacher
i am using cron for backups without problems. however, i'm using the
/opt/interbase/bin/gbak approach, not the cd approach.
you could append "> /path/to/my/log/file 2>&1" to the gbak command to see if
there are any errors printed by gbak
are you running the backup as a root cron job or as a specific user cron
job? maybe then the user you used has not the permissions necessary.

hth
michael weissenbacher

-----Original Message-----
From: Gerhardus Geldenhuis [mailto:gerhardus@...]
Sent: Tuesday, August 27, 2002 3:48 PM
To: ib-support@yahoogroups.com
Subject: [ib-support] GBAK and crontab


Hi
I have written a script that backups my database dialy. When I execute it as
root it works fine. But when cron starts the script it does not work. It
does create the file but it is 0 bytes big.

Here is the script:
#!/bin/sh
tdy=`date +%Y%m%d`
cd /opt/interbase/bin/
./gbak -b -t -v -user sysdba -pas newman /schoemandata/SCHOEMAN.GDB
/schoemandata/backup/SchoemanBackup.gbak.$tdy

I have also tried /opt/interbase/bin/gbak -b ...

Someone on a Linux support groups says that the environmental variables does
not exists for cron which could be the reason the script does not work. Does
gbak make use of any enviromental variables and if so what are they.

I could not find anything on environment variables in the Operations Guide.

I am using Mandrake 8.1 and Firebird SS 1.0

Groete
Gerhardus



To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/