Bacula-users

Re: [Bacula-users] Bacula Catalog Backup to tape

2011-08-27 12:09:51
Subject: Re: [Bacula-users] Bacula Catalog Backup to tape
From: Christian Manal <moenoel AT informatik.uni-bremen DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 27 Aug 2011 18:04:51 +0200
Am 27.08.2011 17:15, schrieb John Drescher:
> On Sat, Aug 27, 2011 at 11:13 AM, John Drescher <drescherjm AT gmail DOT com> 
> wrote:
>> On Sat, Aug 27, 2011 at 4:06 AM, frank_sg
>> <bacula-forum AT backupcentral DOT com> wrote:
>>> Hi,
>>>
>>> I do my catalog backups to tape. I have an autoloader (Dell TL2000) with an 
>>> LTO4 drive. I have created a pool "Catalog" containing two tapes. Since my 
>>> catalog is not that big  8)  all the catalog backups have been writen to 
>>> the first tape in the pool. But I would like to switch the tape for every 
>>> catalog backup - so first backup goes to first tape, second to second tape, 
>>> third to first tape again, and so on. How is this posible with bacula?
>>>
>>
>> Use volume once. With a 1 day retention period.
> 
> If you want to put more than 1 catalog on a tape use a different pool
> for each of the tapes and use the schedule resource to schedule both
> pools every other day.
> 
> John

A way to do it with both tapes in one pool would be a "RunAfterJob"
script, which changes the "active" tape to the status 'used' and the
"inactive" tape to 'append'.

Something along these lines:

   #!/bin/bash

   POOL=catalog

   ACTIVE_TAPE=$(echo list media pool=$POOL | bconsole | grep Append | \
                 awk '{print $4}')
   INACTIVE_TAPE=$(echo list media pool=$POOL | bconsole | grep Used | \
                   awk '{print $4}')

   cat << EOF | bconsole
   update volume=$ACTIVE_TAPE volstatus=Used
   update volume=$INACTIVE_TAPE volstatus=Append
   EOF


Regards,
Christian Manal

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users