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