Hi,
 
I am using the following script for end of backup to run and my backup is working but my tape will not eject after end of backup.I am using debian 3.1 with bacula
 
#!/bin/sh
/usr/bin/bconsole -c /etc/bacula/bconsole.conf <<END_OF_DATA
unmount storage=DLT
END_OF_DATA
# the following is a shell command
/etc/bacula/scripts/delete_catalog_backup
### export TAPE=nst0
export TAPE=/dev/nst0
mt rewind
mt eject
exit 0
 
I am getting the following error
 
10-Mar 02:32 bacula1-dir: RunAfter: mt: /dev/nst0: Permission denied
10-Mar 02:32 bacula-dir: RunAfter: mt: /dev/nst0: Permission denied
 
nst0 permissions as follows
 
crw-rw----  1 root tape 9, 128 2005-02-26 06:38 nst0
 
Can some one help me where i am doing wrong
 
thanks


Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail

Reply via email to