On Wed, 08 Aug 2007, Jose Luis Garcia might have said: > And how can I do automatic when I insert the tape? > > Cheers. > > mikee escribió: > >On Wed, 08 Aug 2007, Marcos de Jesus Faria might have said: > > > > > >>Hello Srs, > >> > >>I Have bacula+FreeBSD and I want to Eject tape automatically after > >>backup, how can I do that ? > >> > > > >Add 'Run After Backup = $script' to the last scheduled backup of the day. > >In that script there are > >lines like: > > > >----------------------------- > >#!/bin/sh > > > ># $Id$ > ># $Log$ > > > ># umount the tape from bacula > >echo "umount $device" | bconsole > > > ># eject the tape > >mt -f /dev/nst0 rewind > >mt -f /dev/nst0 eject > >-----------------------------
Do you mean how to automatically mount the tape prior to the scheduled backup by bacula? If so, in your first scheduled backup job for the night use 'Run Before Backup = $script' where $script is something like: ----------------------------- #!/bin/sh # $Id$ # $Log$ # mount any tape in the drive echo 'mount $device' | bconsole ----------------------------- My $device is elo:st0 and is defined in bacula-dir.conf and bacula-sd.conf. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users