Hello,
On 12/17/2005 8:38 PM, Natxo Asenjo wrote:
hi,
Following the instructions in
http://bacula.org/rel-manual/Backup_Strategies.html#SECTION000283300000000000000
I have a little problem. The script /etc/bacula/end_of_backup.sh when
run manually works fine, when run at the end of the job I get this
message:
17-Dec 20:26 tux-dir: RunAfter: + echo root
17-Dec 20:26 tux-dir: RunAfter: root
17-Dec 20:26 tux-dir: RunAfter: + /etc/bacula/delete_catalog_backup
17-Dec 20:26 tux-dir: RunAfter: + mt rewind
17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied
17-Dec 20:26 tux-dir: RunAfter: + mt eject
17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied
17-Dec 20:26 tux-dir: RunAfter: + exit 0
Hmm. Are you using a debian linux system? I think I remember something...
So obviously the tape is not ejected and I need to eject it manually.
Obviously.
You might try inserting something like
echo 'umount TAPE' | bconsole
in your script before the mt eject. And perhaps mt rewoffl is also worth
a try.
ls -l /etc/bacula/end_of_backup.sh
-rwsr-sr-- 1 root bacula 97 Dec 17 20:16 /etc/bacula/end_of_backup.sh
I have even (OMG)
:-)
tried setting the suid bit on the script to no avail.
Shouldn't work, as far as I know...
In fact, I have a echo statement at the beginnig of the script that
confirms that it runs as root (echo $USER), so I am not sure what the
problem is. This is bacula 1.38.2 and for the rest it's great!
I sure would like to have this daily tape rotation because at our
company we already have this rotation and one of the workers is used to
this, so i'd rather not change it.
Good reason, I think.
Arno
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users