Hello,
On 3/24/2006 9:37 AM, Erik P. Olsen wrote:
Is there a way from a script of some kind to set a volume status to full
and perform a switch to the next volume in the pool? I would like to do
it for two reasons.
You can't expressly switch to another tape, but you can prevent further
usage of any volume in "Append" state.
Usually, you'd set the status to "Used", not "Full".
This can be done automatically, for example by limiting the time a
volume can be used, the amount of data to put on it, or the number of
jobs it may hold. All these options are described in the manual, in the
chapter about the pool resource.
First to prevent that a nightly back-up asks for the mounting of another
volume, because I do manual tape mounts.
Secondly I do a weekly full back-up of three boxes with daily
incrementals in between and this is usually 80-85% of the tape capacity,
so it would be very convenient to have one tape per back-up cycle.
If this is possible I would then schedule the script to run during
daytime the day before the full back-up, so that everything would be
ready for the nightly back-up.
If you want to do it by script you will need a little more work: First,
find out which tape is in use currenly. Parsing the "status storage=xxx"
output is one way to do that, but it's somewhat complicated.
Then you can use a command like
'bconsole -c /etc/bacula/bconsole.conf <<EOF
update volume=$VOL_IN_USE volstatus=Used
EOF'
to update that volumes status.
You can also directly access the catalog database, but I wouldn't
recommend that for that purpose.
Arno
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users