Please help me understand automatic labeling, because it does not work how I
thought it should.
If I try to expand the variable 'Client' I always get the Director machine, or
the one that backs up first. I thought I should get the Client of the
currently running job.
Also I need help understanding how the Counter resource works and when it
increments. It seems to be incrementing randomly -- when I only want it to
increment when called from a specific pool.
Here are some salient details of my setup:
Client {
# This is also the dir and sd
Name = oink.corp
Address = oink.corp
FDPort = 9102
Catalog = MyCatalog
Password = "foo"
File Retention = 60 days
Job Retention = 1 month
AutoPrune = yes
}
Client {
Name = ifss.corp
Address = ifss.corp
FDPort = 9102
Catalog = MyCatalog
Password = "foo"
File Retention = 60 days
Job Retention = 1 month
AutoPrune = yes
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 60 days # 2 months
Accept Any Volume = yes # write on any volume in the pool
Maximum Volume Jobs = 1
Label Format = "${Pool}-${Job}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}"
}
Pool {
Name = Full-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 6 months
Accept Any Volume = no
Maximum Volume Jobs = 1
# I want this counter to be incremented once a month when this pool is used
# I also want a volume for each client to be backed up
# Expected labels are oink.corp-Full-1, ifss.corp-Full-6, etc
Label Format = "${Client}-Full-${MonthCount+}"
Maximum Volumes = 12
}
Pool {
Name = Diff-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 31 days
Accept Any Volume = no
Maximum Volume Jobs = 1
# I want this counter to increment once per week when this pool is used
# I also want a volume for each client to be backed up
# Expected labels are oink.corp-Diff-1, ifss.corp-Diff-4, etc
Label Format = "${Client}-Diff-${WeekCount+}"
Maximum Volumes = 10
}
Pool {
Name = Inc-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 4 weeks
Accept Any Volume = no
Maximum Volume Jobs = 5
# I want this pool to use the same counter values as the Differential pool
# I want each client to have its own volume each week and use it for all
# increrental backups during the week
Label Format = "${Client}-Inc-${WeekCount}"
Maximum Volumes = 20
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Differential
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Priority = 10
Pool = Default
}
Job {
Name = "oink.corp.backup"
Client = "oink.corp"
Fileset = "oink.corp"
Write Bootstrap = "/var/bacula/oink.corp.bsr"
Jobdefs = "DefaultJob"
Run After Job = "/root/bacula_postexec.sh %v"
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
}
Job {
Name = "ifss.corp.backup"
Client = "ifss.corp"
Fileset = "ifss.corp"
Write Bootstrap = "/var/bacula/ifss.corp.bsr"
Jobdefs = "DefaultJob"
Client Run Before Job = "D:/ORANT/DATABASE/SHUTDOWN.CMD"
Client Run After Job = "D:/ORANT/DATABASE/STARTUP.CMD"
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
Priority = 11
}
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sat at 00:05
Run = Differential 2nd-5th sat at 00:05
Run = Incremental tue-fri at 00:05
}
Given the above setup, what am I doing wrong? I really do not think I should
veed a different pool for each client -- it seems like I must be doing
something wrong in the label format.
Thanks for your help!
Misty
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users