]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-migration.conf.in
Add migration job test
[bacula/bacula] / regress / scripts / bacula-dir-migration.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 = 8101                # 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 /tmp
29 Job {
30   Name = "NightlySave"
31   Type = Backup
32   Client=@hostname@-fd 
33   FileSet="Full Set"
34   Storage = File
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 Job {
44   Name = "migrate"
45   Type = Migrate
46   Level = Full
47   Client=@hostname@-fd 
48   FileSet="Full Set"
49   Messages = Standard
50   Storage = DiskChanger
51   Write Bootstrap = "@working_dir@/migrate.bsr"
52   Pool = Default
53   Maximum Concurrent Jobs = 4
54   Selection Type = Job 
55   Selection Pattern = ".*Save"
56 }
57
58 # Standard Restore template, to be changed by Console program
59 Job {
60   Name = "RestoreFiles"
61   Type = Restore
62   Client=@hostname@-fd 
63   FileSet="Full Set"
64   Storage = File
65   Messages = Standard
66   Pool = Default
67   Where = /tmp/bacula-restores
68 }
69
70
71 # List of files to be backed up
72 FileSet {
73   Name = "Full Set"
74   Include { Options { signature=MD5 }
75     File =  </tmp/file-list
76   }
77 }
78
79
80 #
81 # When to do the backups, full backup on first sunday of the month,
82 #  differential (i.e. incremental since full) every other sunday,
83 #  and incremental backups other days
84 Schedule {
85   Name = "WeeklyCycle"
86   Run = Full 1st sun at 1:05
87   Run = Differential 2nd-5th sun at 1:05
88   Run = Incremental mon-sat at 1:05
89 }
90
91 # Client (File Services) to backup
92 Client {
93   Name = @hostname@-fd
94   Address = @hostname@
95   FDPort = 8102
96   Catalog = MyCatalog
97   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
98   File Retention = 30d                # 30 days
99   Job Retention = 180d                # six months
100   AutoPrune = yes                     # Prune expired Jobs/Files
101   Maximum Concurrent Jobs = 4
102 }
103
104 # Definition of DDS Virtual tape disk storage device
105 Storage {
106   Name = DiskChanger
107   Address = @hostname@                # N.B. Use a fully qualified name here
108   SDPort = 8103
109   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
110   Device = DiskChanger                      # must be same as Device in Storage daemon
111   Media Type = DiskChanger                  # must be same as MediaType in Storage daemon
112   Maximum Concurrent Jobs = 4
113   Autochanger = yes
114 }
115
116 # Definition of file storage device
117 Storage {           
118   Name = File
119   Address = @hostname@
120   SDPort = 8103
121   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
122   Device = FileStorage
123   Media Type = File
124   Maximum Concurrent Jobs = 5
125 }
126
127
128 # Generic catalog service
129 Catalog {
130   Name = MyCatalog
131   dbname = bacula; user = bacula; password = ""
132 }
133
134 # Reasonable message delivery -- send most everything to email address
135 #  and to the console
136 Messages {
137   Name = Standard
138   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
139   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
140   MailOnError = @job_email@ = all, !terminate
141   operator = @job_email@ = mount
142   console = all, !skipped, !terminate, !restored
143 #
144 # WARNING! the following will create a file that you must cycle from
145 #          time to time as it will grow indefinitely. However, it will
146 #          also keep all your messages if the scroll off the console.
147 #
148   append = "@working_dir@/log" = all, !skipped
149 }
150
151 #
152 # Message delivery for daemon messages (no job).
153 Messages {
154   Name = Daemon
155   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
156   mail = @job_email@ = all, !skipped            
157   console = all, !skipped, !saved
158   append = "@working_dir@/log" = all, !skipped
159 }
160
161     
162 # Default pool definition
163 Pool {
164   Name = Default
165   Pool Type = Backup
166   Recycle = yes                       # Bacula can automatically recycle Volumes
167   AutoPrune = yes                     # Prune expired volumes
168   Volume Retention = 365d             # one year
169   NextPool = Full
170   Storage = File
171 }
172
173 Pool {
174   Name = Full
175   Pool Type = Backup
176   Recycle = yes                       # Bacula can automatically recycle Volumes
177   AutoPrune = yes                     # Prune expired volumes
178   Volume Retention = 365d             # one year
179   Storage = DiskChanger
180 }