]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/broken-media-bug-bacula-dir.conf.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / broken-media-bug-bacula-dir.conf.in
1 # Configuration for the director for testing for the broken media bug.
2 # Test written by Graham Keeling
3
4 Director {                            # define myself
5   Name = @hostname@-dir
6   DIRPort = @dirport@                # where we listen for UA connections
7   QueryFile = "@scriptdir@/query.sql"
8   WorkingDirectory = "@working_dir@"
9   PidDirectory = "@piddir@"
10   SubSysDirectory = "@subsysdir@"
11   PluginDirectory = "@sbindir@"
12   Maximum Concurrent Jobs = 4
13   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
14   Messages = Standard
15 }
16
17 Job {
18   Name = "First"
19   Type = Backup
20   Client=@hostname@-fd 
21   FileSet="Set1"
22   Storage = File
23   Messages = Standard
24   Pool = Default
25   Write Bootstrap = "@working_dir@/NightlySave.bsr"
26   Maximum Concurrent Jobs = 4
27 }
28
29 Job {
30   Name = "Second"
31   Type = Backup
32   Client=@hostname@-fd 
33   FileSet="Set2"
34   Storage = File
35   Messages = Standard
36   Pool = Default
37   Write Bootstrap = "@working_dir@/NightlySave.bsr"
38   Maximum Concurrent Jobs = 4
39 }
40
41 # Standard Restore template, to be changed by Console program
42 Job {
43   Name = "RestoreFiles"
44   Type = Restore
45   Client=@hostname@-fd 
46   FileSet="Set1"
47   Storage = File
48   Messages = Standard
49   Pool = Default
50   Where = @tmpdir@/bacula-restores
51 }
52
53
54 # List of files to be backed up
55 FileSet {
56   Name = "Set1"
57   Include {  
58      Options { signature=MD5; }
59      File =  <@tmpdir@/file-list
60   }
61 }
62
63 FileSet {
64   Name = "Set2"
65   Include {  
66      Options { signature=MD5; }
67      File =  <@tmpdir@/file-list
68   }
69 }
70
71
72 # Client (File Services) to backup
73 Client {
74   Name = @hostname@-fd
75   Address = @hostname@
76   FDPort = @fdport@
77   Catalog = MyCatalog
78   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
79   File Retention = 30d                # 30 days
80   Job Retention = 180d                # six months
81   AutoPrune = yes                     # Prune expired Jobs/Files
82   Maximum Concurrent Jobs = 4
83 }
84
85 # Definiton of file storage device
86 Storage {
87   Name = File
88   Address = @hostname@                # N.B. Use a fully qualified name here
89   SDPort = @sdport@
90   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
91   Device = FileStorage
92   Media Type = File
93   Maximum Concurrent Jobs = 4
94 }
95
96 # Generic catalog service
97 Catalog {
98   Name = MyCatalog
99   
100   dbname = @db_name@; user = @db_user@; password = "@db_password@"
101 }
102
103 # Reasonable message delivery -- send most everything to email address
104 #  and to the console
105 Messages {
106   Name = Standard
107   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" 
108 -s \"Regression: %t %e of %c %l\" %r"
109   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %
110 r\" -s \"Regression: Intervention needed for %j\" %r"
111 # MailOnError = @job_email@ = all
112 # operator = @job_email@ = mount
113
114   console = all, !skipped, !terminate, !restored
115 #
116 # WARNING! the following will create a file that you must cycle from
117 #          time to time as it will grow indefinitely. However, it will
118 #          also keep all your messages if the scroll off the console.
119 #
120   append = "@working_dir@/log" = all, !skipped
121   catalog = all, !skipped
122 }
123     
124 # Default pool definition
125 Pool {
126   Name = Default
127   Pool Type = Backup
128   Recycle = yes                       # Bacula can automatically recycle Volumes
129   AutoPrune = yes                     # Prune expired volumes
130   Volume Retention = 365d             # one year
131   Maximum Volume Jobs = 1
132   Label Format = TestVolume
133   Maximum Volumes = 0
134 }