FYI I've added the following custom template to the backup system to
automatically eject the DAT tape after the backup has occured.
It has been tested on SME 5.12 & 5.50 with an DAT drive and a new Sony
SDT-10000
Now afte rmy backup has completed the tape is ejected automatically and I
can get 'unskilled users' to remove the tape and replace with anotehr tape.

In /etc/e-smith/templates-custom/sbin/e-smith/backup
create a new template ( I copied
/etc/e-smith/templates-custom/sbin/e-smith/backup/90rewind-tape and edited
it by changing the rewind to offline near the end of the file )

95eject-tape



{
    use esmith::db;

    local %services;
    $services{'backup'} = $backup;

    $OUT = '';

    my $status = db_get_prop(\%services, 'backup', 'status');

    if (defined $status && $status eq 'enabled')
    {
        my $device = db_get_prop(\%services, 'backup', 'Device')
            || "/dev/nst0";

        $OUT .= "\n";
        $OUT .= "/bin/mt -f \"$device\" offline";
    }
}


Rod




--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to