]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/testb-bacula-dir.conf.in
fd046d6922260293dd48addac96d1062b5cd5c1e
[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   dbname = regress; user = regress; password = ""
110 }
111
112 # Reasonable message delivery -- send most everything to email address
113 #  and to the console
114 Messages {
115   Name = Standard
116   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
117   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
118   MailOnError = @job_email@ = all, !terminate
119   operator = @job_email@ = mount
120   console = all, !skipped, !terminate
121
122   append = "@working_dir@/log" = all, !skipped
123 }
124
125 Messages {
126   Name = NoEmail
127   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
128   console = all, !skipped, !terminate, !restored
129   append = "@working_dir@/log" = all, !skipped
130 }
131
132     
133 # Default pool definition
134 Pool {
135   Name = Default
136   Pool Type = Backup
137   Recycle = yes                       # Bacula can automatically recycle Volumes
138   AutoPrune = yes                     # Prune expired volumes
139   Volume Retention = 365d             # one year
140 }
141
142 Pool {
143   Name = SmallVols
144   Pool Type = Backup
145   Recycle = yes                       # Bacula can automatically recycle Volumes
146   AutoPrune = yes                     # Prune expired volumes
147   Volume Retention = 365d             # one year
148   Maximum Volumes = 100
149   MaximumVolumeBytes = 10M
150   LabelFormat = Small
151 }