Bacula-users

Re: [Bacula-users] end_of_backup.sh

2008-10-02 11:39:21
Subject: Re: [Bacula-users] end_of_backup.sh
From: C M Reinehr <cmr AT amsent DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 2 Oct 2008 10:34:39 -0500
Craig,

On Thu 02 October 2008 09:56, Craig White wrote:
> Ran into a problem with the latest updates to CentOS 5. I have been
> running Bacula 2.0.3 on a few systems for over a year now. Now after the
> updates, the last job runs the script, 'end_of_backup.sh' which runs the
> following commands:
>
> mt rewind
> mt eject
>
> and at the end of the job, it returned this error
>
> AfterJob: /dev/tape: Inappropriate ioctl for device

I don't use CentOS so I'm speculating here, but the mt command, as you have 
it, is using the default tape device which, in this case, appears to 
be /dev/tape. After the upgrade, is /dev/tape still linked to the correct 
device, i.e. to /dev/nst0?

cmr

> which never happened before and it would have rewound and ejected the
> tape.
>
> So I went to a different system that is running Bacula 1.3.8 on CentOS 4
> and I ended up modifying my sudoers file and changing the
> end_of_backup.sh script to run instead...
>
> sudo mt -f /dev/nst0 rewind
> sudo mt -f /dev/nst0 eject
>
> and made those same modifications on this system and at the end of the
> backup now, I get the following error...
>
> AfterJob: sudo: sorry, you must have a tty to run sudo
>
> OK, that makes sense but that also means that I don't have a theory on
> how to handle ejecting the tape as user bacula via a script.
>
> Ideas anyone?
>
> Craig

-- 
Debian 'Etch' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>