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