Re: [Bacula-users] Delete the oldest volume automatically

2006-08-26 Thread Timo Neuvonen
> If I want only two volumes in a pool and each volume is used once. (one
> volume per day also) I put:
>
> Pool {
>   Name = Automatico
>   Pool Type = Backup
>   Maximum Volumes = 2
>   Purge Oldest Volume = yes
>   Maximum Volume Jobs = 1
>   LabelFormat = "Copia_Postgres-${Day:p/2/0/r}-${Month:p/2/0/r}-${Year}"
> }
>
> But when I third job runs, It will recycle the oldest volume, then the
label
> will not change. I want that label with the correct date. Not a
overwritted
> volume.
> How can I do that?
>
Not an answer, but an additional warning: Be careful that your data will
definety fit into one volume, and that both the volumes are always
available. Just in case, if something goes badly wrong with your system and
it generates a lot of files, that don't any more fit into your one volume,
the system will (AFAIK) immediatedly purge the older (yesterday's) volume to
be able to finish the backup of all the files. Then you'll only have this
one backup, which is from a system where are a lot of improperly generated
files, and propably something else is also wrong there. And the worst case
scenario is, if your data doesn't even then fit to the two volumes
available -then it obviously purges the first volume (where the job was
started to), and also the only backup you'll have will be sure to be
invalid.

"Purge Oldest Volume = yes" may be very dangerous. Since it is possible, I
suggest using volume retention period of more than 24 but less than 48
hours, and pruning & regular auto-recycling instead of auto-purge.

More off-topic:
I'm currently fighting with a slightly similar system, but using two
(even/odd) monthly pools and trying to force a recycle in the beginning of
every month. The problem there is that months are not of the same length,
unlike the days are...

--
TiN



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Delete the oldest volume automatically

2006-08-25 Thread Arno Lehmann
Hello,

On 8/25/2006 9:57 AM, Diego wrote:
> If I want only two volumes in a pool and each volume is used once. (one 
> volume per day also) I put:
> 
> Pool {
>   Name = Automatico
>   Pool Type = Backup 
>   Maximum Volumes = 2
>   Purge Oldest Volume = yes
>   Maximum Volume Jobs = 1
>   LabelFormat = "Copia_Postgres-${Day:p/2/0/r}-${Month:p/2/0/r}-${Year}"
> }
> 
> But when I third job runs, It will recycle the oldest volume, then the 
> label will not change. I want that label with the correct date. Not a 
> overwritted volume.
> How can I do that?

Not inside Bacula.

A volume always keeps its name unless you manually relabel it.

The main purpose of a backup solution like Bacula is, IMO, to manage the 
volumes, so I'd say there's not actually the need to have human-readable 
volume names telling you what's in them. YMMV.

What you want could be achieved by some clever scripting, but I don't 
have a fixed recipe. For example, (assuming there is a python event that 
happens when a volume is needed) use a script that deletes the oldes 
volume, and let Bacula create a new one, or create a new volume from 
inside that script.

Similar results could be achieved by any script run as a "Run Before 
Job" command, but that wouldn't be sycronized with the actual need for 
volumes then.

Hope this gives you some useful ideas,

Arno

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users