[Bug 459573] Re: variable expansion uses outdated data

Kern Sibbald kern at sibbald.com
Wed Nov 11 15:40:22 GMT 2009


> Fair enough, obviously I have misunderstood the use case for variable
> expansion. My apologies.

No need to appologize.  Bacula is very complicated, and it is not always
obvious what features to use to do what you want (even for me sometimes).
Unfortunately, for lots of reasons variable expansion never really worked
out in Bacula. Some day, it will be removed once I find something better
(probably plugins).

Kern

>
> --
> variable expansion uses outdated data
> https://bugs.launchpad.net/bugs/459573
> You received this bug notification because you are subscribed to Bacula.
>
> Status in Bacula the Network Backup Solution: New
> Status in “bacula” package in Ubuntu: Invalid
>
> Bug description:
> Binary package hint: bacula
>
> I use "$Client-$Year-$Month-$Day" as my LabelFormat. Recently I tried to
> backup a server called ralph (this was a scheduled job). The Volume was
> created with the correct name but the job failed as the FileDaemon was not
> running, as below:
>
>
> 24-Oct 08:17 floyd-dir JobId 65: Created new Volume "ralph-fd-2009-10-24"
> in catalog.
> 24-Oct 08:17 floyd-dir JobId 65: Using Device "FileStorage"
> 24-Oct 08:17 floyd-dir JobId 65: Warning: bsock.c:123 Could not connect to
> Client: ralph-fd on 192.168.1.254:9102. ERR=Connection refused
>
>
> The job eventually terminated itself. Subsequently I tried to run a job
> manually to backup a different server (benson) and got the following
> output:
>
>
> 24-Oct 13:43 floyd-dir JobId 66: No prior Full backup Job record found.
> 24-Oct 13:43 floyd-dir JobId 66: No prior or suitable Full backup found in
> catalog. Doing FULL backup.
> 24-Oct 13:43 floyd-dir JobId 66: Start Backup JobId 66,
> Job=benson.2009-10-24_13.43.03
> 24-Oct 13:43 floyd-dir JobId 66: Using Device "FileStorage"
> 24-Oct 13:43 floyd-sd JobId 66: Labeled new Volume "ralph-fd-2009-10-24"
> on device "FileStorage" (/bacula-volumes).
> 24-Oct 13:43 floyd-sd JobId 66: Wrote label to prelabeled Volume
> "ralph-fd-2009-10-24" on device "FileStorage" (/bacula-volumes)
> 24-Oct 13:43 floyd-dir JobId 66: Volume used once. Marking Volume
> "ralph-fd-2009-10-24" as Used.
>
>
> Note that the Volume name is again "ralph-fd-2009-10-24". It should have
> been "benson-fd-2009-10-24". It looks like the variable expansion has
> retained the client name "ralph-fd" from the failed job. Either that or
> bacula is not trying to create a new volume at all, but instead reusing
> the volume created previously but not labelled or written to.
>
>
> root at floyd:~# lsb_release -rd
> Description:	Ubuntu 8.04.3 LTS
> Release:	8.04
>
> root at floyd:~# apt-cache policy bacula
> bacula:
>   Installed: (none)
>   Candidate: 2.2.8-5ubuntu7.2
>   Version table:
>      2.2.8-5ubuntu7.2 0
>         500 http://mirror.internode.on.net hardy-updates/main Packages
>      2.2.8-5ubuntu7 0
>         500 http://mirror.internode.on.net hardy/main Packages
>


Best regards, Kern

-- 
variable expansion uses outdated data
https://bugs.launchpad.net/bugs/459573
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.



More information about the Ubuntu-server-bugs mailing list