Hi !
Florian Daniel Otel wrote:
So, the question is: If I specifiy all devices in a single storage
daemon config file, how to I select a specific device/media type to be
used in a job specification ?
Easy, do it like this:
---------------- bacula-dir.conf ------------------
-------> client bernoulli
Job {
Name = Bernoulli
Client = bernoulli-fd
JobDefs = DefaultJob
Storage = dailytape-storage
FileSet = Bernoulli
Schedule = bernoulli-cycle
Pool = dailytape-pool
Write Bootstrap = /var/backup/bacula/working/bernoulli.bsr
Client Run Before Job = /root/bin/oradown
Client Run After Job = /root/bin/oraup
Run Before Job = /var/backup/bacula/bin/scripts/bernoulli-start
Spool Data = yes
Spool Attributes = yes
Max Wait Time = 3600
}
-------> client delphi
Job {
Name = Delphi
Client = delphi-fd
JobDefs = DefaultJob
Storage = dailytape-storage
FileSet = Delphi
Schedule = delphi-cycle
Pool = dailytape-pool
Write Bootstrap = /var/backup/bacula/working/delphi.bsr
Run Before Job = /var/backup/bacula/bin/scripts/vacation-check
Spool Data = yes
Spool Attributes = yes
Max Wait Time = 3600
}
--------> daily changed tape storage for 3 clients (bernoulli, delphi
and one more)
Storage {
Name = dailytape-storage
Address = backup.riege.de
SDPort = 9103
Password = "baculabackup"
Device = daily-sd
Media Type = daily-tape
}
Pool {
Name = dailytape-pool # used monthly
Pool Type = Backup
Label Format = "daily."
Accept Any Volume = yes # use next available volume
Maximum Volume Jobs = 3 # 3 Clients = 3 jobs !
#Volume Use Duration = 16 hours
Maximum Volumes = 16
Volume Retention = 11 days
AutoPrune = yes # Prune expired volumes
Recycle = yes # automatically recycle Volumes
}
--------> definitions for Procars - gets one tape for himself
Job {
Name = Procars
Client = backup-fd
JobDefs = DefaultJob
Storage = procars-storage
FileSet = Procars
Schedule = procars-cycle
Pool = procars-pool
Write Bootstrap = /var/backup/bacula/working/procars.bsr
Run After Job = /var/backup/bacula/bin/scripts/procars-eject
Spool Data = yes
Spool Attributes = yes
Max Wait Time = 3600
}
Storage {
Name = procars-storage
Address = backup.riege.de
SDPort = 9103
Password = "baculabackup"
Device = procars-sd
Media Type = procars-tape
}
Pool {
Name = procars-pool # used weekly
Pool Type = Backup
Label Format = "procars."
Accept Any Volume = yes # use next available volume
Maximum Volume Jobs = 7
Maximum Volumes = 4
Volume Retention = 2 weeks # catalog entries
AutoPrune = yes # Prune expired volumes
Recycle = yes # automatically recycle Volumes
}
-------------------- SNIP -------------------
I hope you get how it`s done without further explanation as i`m not too
good at explaining stuff ;)
Basically each storage device in the SD-config has another "Storage"
definition in the director that you can reference in the job-defs.
Best regards,
--
Daniel Holtkamp Riege Software International GmbH
System Administration Mollsfeld 10
40670 Meerbusch, Germany Phone: +49-2159-9148-41
mail: holtkamp [at] riege.com Fax: +49-2159-9148-11
--------------------------------------------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users