Bacula-users

Re: [Bacula-users] Volume rotate?

2010-09-24 00:04:22
Subject: Re: [Bacula-users] Volume rotate?
From: Michael Van Der Beek <michael.van AT antlabs DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Fri, 24 Sep 2010 12:01:18 +0800
Hi John,

Thanks John!

I'll try this on Monday, in time for Tuesday 1am Full backup window.

I don't want to trigger upgraded to full backup or I have to explain my actions 
:)

Regards,

Michael

-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com] 
Sent: Thursday, 23 September, 2010 8:25 PM
To: Michael Van Der Beek
Cc: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Volume rotate?

On Thu, Sep 23, 2010 at 1:56 AM, Michael Van Der Beek
<michael.van AT antlabs DOT com> wrote:
> Hi John,
>
> Here is volume record from bconsole for bss.
> Pool: name=bss PoolType=Backup
>      use_cat=1 use_once=0 cat_files=1
>      max_vols=26 auto_prune=1 VolRetention=6 months
>      VolUse=0 secs recycle=1 LabelFormat=bss-
>      CleaningPrefix=*None* LabelType=0
>      RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
>      MaxVolJobs=26 MaxVolFiles=0 MaxVolBytes=0
>      MigTime=0 secs MigHiBytes=0 MigLoBytes=0
>      JobRetention=0 secs FileRetention=0 secs
> Looks like its missing the 7days thing.
>
> I guess I have to do an update. And change the Volume Use Duration?
> Is that right?
>

Open a terminal and type the following command as root (or su or sudo):

jmd0 # bacula-dir -t -c /etc/bacula/bacula-dir.conf
jmd0 #

Then enter a bacula console
jmd0 # bconsole

and
update
select    2: Pool from resource
then select your pool (Backup) and enter.

Here is an example from my home bacula install:

Pool DB record updated from resource.
*update
Update choice:
     1: Volume parameters
     2: Pool from resource
     3: Slots from autochanger
     4: Long term statistics
Choose catalog item to update (1-4): 2
The defined Pool resources are:
     1: Default
     2: Catalogs
     3: Users
     4: Temp
     5: Scratch
Select Pool resource (1-5): 1
+--------+---------+---------+---------+---------+------------+-----------------+--------------+----------------+------------+-------------+---------------+-----------+---------+----------+-----------+-------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+---------------+
| poolid | name    | numvols | maxvols | useonce | usecatalog |
acceptanyvolume | volretention | voluseduration | maxvoljobs |
maxvolfiles | maxvolbytes   | autoprune | recycle | pooltype |
labeltype | labelformat | enabled | scratchpoolid | recyclepoolid |
nextpoolid | migrationhighbytes | migrationlowbytes | migrationtime |
actiononpurge |
+--------+---------+---------+---------+---------+------------+-----------------+--------------+----------------+------------+-------------+---------------+-----------+---------+----------+-----------+-------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+---------------+
|      6 | Default |      11 |       0 |       0 |          1 |
       0 |    2,592,000 |              0 |          0 |           0 |
5,368,709,120 |         1 |       1 | Backup   |         0 | *
  |       1 |             0 |             0 |          0 |
     0 |                 0 |             0 |             0 |
+--------+---------+---------+---------+---------+------------+-----------------+--------------+----------------+------------+-------------+---------------+-----------+---------+----------+-----------+-------------+---------+---------------+---------------+------------+--------------------+-------------------+---------------+---------------+
Pool DB record updated from resource.
*

Then after this
update
and select "Volume Parameters"
then select "All Volumes from Pool"
and enter your pool again

or I guess you could have used "All Volumes from all Pools" on the last prompt.

Here is an example of that.
*update
Update choice:
     1: Volume parameters
     2: Pool from resource
     3: Slots from autochanger
     4: Long term statistics
Choose catalog item to update (1-4): 1
Parameters to modify:
     1: Volume Status
     2: Volume Retention Period
     3: Volume Use Duration
     4: Maximum Volume Jobs
     5: Maximum Volume Files
     6: Maximum Volume Bytes
     7: Recycle Flag
     8: Slot
     9: InChanger Flag
    10: Volume Files
    11: Pool
    12: Volume from Pool
    13: All Volumes from Pool
    14: All Volumes from all Pools
    15: Enabled
    16: RecyclePool
    17: Action On Purge
    18: Done
Select parameter to modify (1-18): 13
The defined Pool resources are:
     1: Default
     2: Catalogs
     3: Users
     4: Temp
     5: Scratch
Select Pool resource (1-5): 1
All Volume defaults updated from "Default" Pool record.
*

John

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>