Bacula-users

Re: [Bacula-users] File-Storage and automatic labeling and volumecreation

2010-02-01 14:17:32
Subject: Re: [Bacula-users] File-Storage and automatic labeling and volumecreation
From: "Timo Neuvonen" <timo-news AT tee-en DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 1 Feb 2010 21:14:28 +0200
"Thomas Schweikle" <tps AT vr-web DOT de> kirjoitti viestissä 
news:hk76l8$o2e$1 AT ger.gmane DOT org...
> Hi!
>
> I am trying to set up bacula to aoutmaticly creating and labeling a
> volume for backup. AFAIK I did everything to make it happen, but it
> does not work as expected ...
>
> In bacula-dir.conf:
> JobDefs {
>  Name = "kiwiJob"
>  Type = Backup
>  Level = Incremental
>  Client = kiwi-fd
>  FileSet = "Win-Drive-C"
>  Schedule = "WeeklyCycle"
>  Storage = File
>  Messages = Standard
>  Pool = kiwi-pl
>  Priority = 10
> }
>
> Job {
>  Name = "kiwi"
>  Client = kiwi-fd
>  JobDefs = "kiwiJob"
>  Write Bootstrap = "D:\\Bacula\\Work\\kiwi.bsr"
> }
>
> Storage {
>  Name = File
>  Address = kiwi
>  SDPort = 9103
>  Password = "B9yXCsk5ZfbwlUnj+rC1AbmnbNNh4vcjiyEQpu92G1js"
>  Device = FileStorage
>  Media Type = File
>  LabelMedia = yes
> }
>
> Pool {
>  Name = kiwi-pl
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Volume Retention = 365 days
>  Maximum Volumes = 20
>  Maximum Volume Bytes = 4.3G
>  Label Format = "${Client}-${Level}-${year}-${month}-${Day}-${hour}"
> }
>
>
> In bacula-sd.conf:
> Device {
>  Name = FileStorage
>  Media Type = File
>  Archive Device = "D:\\Backup"
>  LabelMedia = yes
>  Random Access = Yes
>  AutomaticMount = yes
>  RemovableMedia = no
>  AlwaysOpen = no
> }
>
>
> and at job start time:
> 01-Feb 17:05 kiwi-sd JobId 1: Job kiwi.2010-02-01_17.05.10_02
> waiting. Cannot find any appendable volumes.
> Please use the "label"  command to create a new Volume for:
>    Storage:      "FileStorage" (D:\Backup)
>    Pool:         kiwi-pl
>    Media type:   File
>
>
> How do I have to set up bacula to automaticly create a volume, label
> it, then use it, until it is old enough to be pruned and deleted?
> Ideally with no user interaction at all?
>

Volumes won't get deleted automatically. If you don't want to recycle 
existing volumes, you have to delete old ones manually, or make a script to 
do it. Deleting might require both deleting from the catalog (since you have 
a limit of 'maximum volumes' which would prevent creating new ones) and also 
deleting the actual files. I think there were some discussion about that 
kind of script recently (in January?) in this list.

Btw, if this isn't your private-only system, it would be wise to remove the 
passwords from the conf files you post to public list.

--
TiN 



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users