]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/testb-bacula-dir.conf.in
Apply patch from Thomas Mueller that adds db parameters to config file
[bacula/bacula] / regress / scripts / testb-bacula-dir.conf.in
1 #
2 # TestA   Bacula Director Configuration file
3 #
4 #  For Bacula release 2.2.x
5 #
6
7 Director {                            # define myself
8   Name = @hostname@-dir
9   DIRPort = @dirport@                # where we listen for UA connections
10   QueryFile = "@scriptdir@/query.sql"
11   WorkingDirectory = "@working_dir@"
12   PidDirectory = "@piddir@"
13   SubSysDirectory = "@subsysdir@"
14   Maximum Concurrent Jobs = 20
15   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
16   Messages = Standard
17 }
18
19
20 Job {
21   Name = "MultiVol"
22   Type = Backup
23   Client=@hostname@-fd 
24   Level = Full
25   FileSet="Full Set"
26   Storage = File 
27   Messages = Standard
28   Write Bootstrap = "@working_dir@/SmallVols.bsr"
29   Pool = SmallVols
30   SpoolData = yes
31   Maximum Concurrent Jobs = 20
32 }
33
34
35 Job {
36   Name = "VerifyVolume"
37   Type = Verify
38   Level = VolumeToCatalog
39   Client=@hostname@-fd 
40   FileSet="Full Set"
41   Storage = File
42   Messages = Standard
43   Pool = Default
44   Write Bootstrap = "@working_dir@/NightlySave.bsr"
45 }
46
47
48
49 # Standard Restore template, to be changed by Console program
50 Job {
51   Name = "RestoreFiles"
52   Type = Restore
53   Client=@hostname@-fd 
54   FileSet="Full Set"
55   Storage = File
56   Messages = Standard
57   Pool = Default
58   Where = @tmpdir@/bacula-restores
59 }
60
61
62 # List of files to be backed up
63 FileSet {
64   Name = "Full Set"
65   Include { Options { signature=SHA1 }
66     File =<@tmpdir@/file-list
67   }
68 }
69
70
71 # Client (File Services) to backup
72 Client {
73   Name = @hostname@-fd
74   Address = @hostname@
75   FDPort = @fdport@
76   Catalog = MyCatalog
77   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
78   File Retention = 30d                # 30 days
79   Job Retention = 180d                # six months
80   AutoPrune = yes                     # Prune expired Jobs/Files
81   Maximum Concurrent Jobs = 20
82 }
83
84 # Definiton of file storage device
85 Storage {
86   Name = File
87   Address = @hostname@                # N.B. Use a fully qualified name here
88   SDPort = @sdport@
89   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
90   Device = FileStorage
91   Media Type = File
92   Maximum Concurrent Jobs = 20
93 }
94
95 Storage {
96   Name = File1
97   Address = @hostname@                # N.B. Use a fully qualified name here
98   SDPort = @sdport@
99   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
100   Device = FileStorage1
101   Media Type = File1
102   Maximum Concurrent Jobs = 20
103 }
104
105
106 # Generic catalog service
107 Catalog {
108   Name = MyCatalog
109   @libdbi@  
110   dbname = @db_name@; user = @db_user@; password = "@db_password@"
111 }
112
113 # Reasonable message delivery -- send most everything to email address
114 #  and to the console
115 Messages {
116   Name = Standard
117   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
118 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
119 # MailOnError = @job_email@ = all, !terminate
120 # operator = @job_email@ = mount
121   console = all, !skipped, !terminate
122
123   append = "@working_dir@/log" = all, !skipped
124 }
125
126 Messages {
127   Name = NoEmail
128   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
129   console = all, !skipped, !terminate, !restored
130   append = "@working_dir@/log" = all, !skipped
131 }
132
133     
134 # Default pool definition
135 Pool {
136   Name = Default
137   Pool Type = Backup
138   Recycle = yes                       # Bacula can automatically recycle Volumes
139   AutoPrune = yes                     # Prune expired volumes
140   Volume Retention = 365d             # one year
141 }
142
143 Pool {
144   Name = SmallVols
145   Pool Type = Backup
146   Recycle = yes                       # Bacula can automatically recycle Volumes
147   AutoPrune = yes                     # Prune expired volumes
148   Volume Retention = 365d             # one year
149   Maximum Volumes = 100
150   MaximumVolumeBytes = 10M
151   LabelFormat = Small
152 }