]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-virtual.conf.in
Fix slow regress setups
[bacula/bacula] / regress / scripts / bacula-dir-virtual.conf.in
1 #
2 # Default Bacula Director Configuration file
3 #
4 #  The only thing that MUST be changed is to add one or more
5 #   file or directory names in the Include directive of the
6 #   FileSet resource.
7 #
8 #  For Bacula release 1.39
9 #
10 #  You might also want to change the default email address
11 #   from root to your address.  See the "mail" and "operator"
12 #   directives in the Messages resource.
13 #
14
15 Director {                            # define myself
16   Name = @hostname@-dir
17   DIRPort = @dirport@                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   Maximum Concurrent Jobs = 4
22   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
23   Messages = Daemon
24 }
25
26 #
27 # Define the main nightly save backup job
28 #   By default, this job will back up to disk in @tmpdir@
29 Job {
30   Name = "NightlySave"
31   Type = Backup
32   Client=@hostname@-fd 
33   FileSet="Full Set"
34   Storage = DiskChanger
35   Messages = Standard
36   Pool = Default
37   Write Bootstrap = "@working_dir@/NightlySave.bsr"
38   Maximum Concurrent Jobs = 4
39   SpoolData = yes
40 # Prefer Mounted Volumes = no
41 }
42
43
44 # Standard Restore template, to be changed by Console program
45 Job {
46   Name = "RestoreFiles"
47   Type = Restore
48   Client=@hostname@-fd 
49   FileSet="Full Set"
50   Storage = DiskChanger
51   Messages = Standard
52   Pool = Default
53   Where = @tmpdir@/bacula-restores
54 }
55
56
57 # List of files to be backed up
58 FileSet {
59   Name = "Full Set"
60   Include { Options { signature=MD5 }
61     File =  <@tmpdir@/file-list
62   }
63 }
64
65
66 #
67 # When to do the backups, full backup on first sunday of the month,
68 #  differential (i.e. incremental since full) every other sunday,
69 #  and incremental backups other days
70 Schedule {
71   Name = "WeeklyCycle"
72   Run = Full 1st sun at 1:05
73   Run = Differential 2nd-5th sun at 1:05
74   Run = Incremental mon-sat at 1:05
75 }
76
77 # Client (File Services) to backup
78 Client {
79   Name = @hostname@-fd
80   Address = @hostname@
81   FDPort = @fdport@
82   Catalog = MyCatalog
83   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
84   File Retention = 30d                # 30 days
85   Job Retention = 180d                # six months
86   AutoPrune = yes                     # Prune expired Jobs/Files
87   Maximum Concurrent Jobs = 4
88 }
89
90 # Definition of DDS Virtual tape disk storage device
91 Storage {
92   Name = DiskChanger
93   Address = @hostname@                # N.B. Use a fully qualified name here
94   SDPort = @sdport@
95   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
96   Device = DiskChanger                      # must be same as Device in Storage daemon
97   Media Type = DiskChangerMedia             # must be same as MediaType in Storage daemon
98   Maximum Concurrent Jobs = 4
99   Autochanger = yes
100 }
101
102 # Definition of file storage device
103 Storage {           
104   Name = File
105   Address = @hostname@
106   SDPort = @sdport@
107   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
108   Device = FileStorage
109   Media Type = File
110   Maximum Concurrent Jobs = 5
111 }
112
113
114 # Generic catalog service
115 Catalog {
116   Name = MyCatalog
117   @libdbi@
118   dbname = @db_name@; user = @db_user@; password = "@db_password@"
119 }
120
121 # Reasonable message delivery -- send most everything to email address
122 #  and to the console
123 Messages {
124   Name = Standard
125   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
126   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
127 # MailOnError = @job_email@ = all, !terminate
128 # operator = @job_email@ = mount
129   console = all, !skipped, !terminate, !restored
130 #
131 # WARNING! the following will create a file that you must cycle from
132 #          time to time as it will grow indefinitely. However, it will
133 #          also keep all your messages if the scroll off the console.
134 #
135   append = "@working_dir@/log" = all, !skipped
136   catalog = all, !skipped
137 }
138
139 #
140 # Message delivery for daemon messages (no job).
141 Messages {
142   Name = Daemon
143   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
144 # mail = @job_email@ = all, !skipped            
145   console = all, !skipped, !saved
146   append = "@working_dir@/log" = all, !skipped
147   catalog = all, !skipped
148 }
149
150     
151 # Default pool definition
152 Pool {
153   Name = Default
154   Pool Type = Backup
155   Recycle = yes                       # Bacula can automatically recycle Volumes
156   AutoPrune = yes                     # Prune expired volumes
157   Volume Retention = 365d             # one year
158   NextPool = Full
159 }
160
161 Pool {
162   Name = Full
163   Pool Type = Backup
164   Recycle = yes                       # Bacula can automatically recycle Volumes
165   AutoPrune = yes                     # Prune expired volumes
166   Volume Retention = 365d             # one year
167   Storage = DiskChanger
168 }