Koozali.org: home of the SME Server

Auto Eject Tape??

Doug Rezner

Auto Eject Tape??
« on: June 15, 2001, 10:41:06 PM »
Hi all:

My e-smith box is working great! But, I'm in need of some advice.

How do I set the tape backup (flexbackup) to automatically eject the tape. I am unfamilair with how the template system works in e-smith and would like some pointers before proceeding.

Thanks,
Doug R

Darrell May

Re: Auto Eject Tape??
« Reply #1 on: June 16, 2001, 09:32:41 AM »
Doug Rezner wrote:
>
> Hi all:
>
> My e-smith box is working great! But, I'm in need of some
> advice.
>
> How do I set the tape backup (flexbackup) to automatically
> eject the tape. I am unfamilair with how the template system
> works in e-smith and would like some pointers before
> proceeding.
>
> Thanks,
> Doug R

Have a look at the last command line in /sbin/e-smith/backup which states:
/bin/mt -f "/dev/nst0" rewind

This is what you want to change.  Here's how:

mkdir -p /etc/e-smith/templates-custom/sbin/e-smith/backup

cd /etc/e-smith/templates-custom/sbin/e-smith/backup

cp /etc/e-smith/templates/sbin/e-smith/backup/90rewind-tape .

# don't forget the '.' at the end of the line above

pico /etc/e-smith/templates-custom/sbin/e-smith/backup

# and replace 'rewind' with 'offline'

/sbin/e-smith/expand-template /sbin/e-smith/backup

cat /sbin/e-smith/backup

# last command line should now state:

/bin/mt -f "/dev/nst0" offline

That should do it :-)

Doug Rezner

Re: Auto Eject Tape??
« Reply #2 on: June 16, 2001, 08:05:23 PM »
Darrell -
Thanks so much for the help. It worked fine. I knew that it had something to do with that line, but since I am new to the whole template system I didnt want to screw anything up. ;)

Once again, thanks for your help

-Doug R