Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cron && backup-manager dvd-rw backup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
spuhpointer
n00b
n00b


Joined: 16 Jan 2006
Posts: 13

PostPosted: Thu Jul 20, 2006 10:59 pm    Post subject: cron && backup-manager dvd-rw backup Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum