spuhpointer n00b
Joined: 16 Jan 2006 Posts: 13
|
Posted: Thu Jul 20, 2006 10:59 pm Post subject: cron && backup-manager dvd-rw backup |
|
|
Hi all,
I am trying to setu backup so that each day backup-manager will burn cd with backed-up info.
From command line all works perfectly, but when I experment by running this from cron, backup-manager outputs strange errors.
My concept is folloging:
some shell script (my own)
will backup postgresql & ldap (copy dumps to some folder, before cleaning up it)
and then call
backup-manager
Code: |
#!/bin/bash
#
# Backup preperation script
# will use /var/tempbackup
#
#delete old stuff if any
rm /var/tempbackup/* -R
#some sql dump here
echo dumping some sql....
#get some stuff here
cp /home/madarsv/tmp /var/tempbackup/ -R
/usr/sbin/backup-manager
#eject cd
eject /dev/hdd 2>/dev/null
|
Problem is that backup-manager gives out some errors, like:
Code: |
* DVD<B1>RW/-RAM format utility by <appro@fy.chalmers.se>, version 4.10.
* 4.7GB DVD+RW media detected.
- illegal command-line option for this media.
- you have the option to re-run /usr/bin/dvd+rw-format with:
-lead-out to elicit lead-out relocation for better
DVD-ROM compatibility, data is not affected;
-force to enforce new format (not recommended)
and wipe the data.
FATAL: /dev/hdd already carries isofs!
/tmp/bm-burning.log.nsP2hv (END)
|
But running it from command line all goes smoothly
My be there is problem with environment variables?
So how can I get that cron runs with recent root env variables?
I use following corntab entry:
Code: |
30 0 * * 1-5 root /usr/local/bin/localb
|
Thanks in advance
Madars |
|