]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir-tape.conf.in
Update
[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 # Definition of DDS tape storage device
93 Storage {
94   Name = DDS-4
95   Address = 192.168.68.112            # N.B. Use a fully qualified name here
96   SDPort = 8103
97   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
98   Device = DDS-4                      # must be same as Device in Storage daemon
99   Media Type = DDS-4                  # must be same as MediaType in Storage daemon
100   AutoChanger = yes
101   Maximum Concurrent Jobs = 4
102 }
103
104
105 # Generic catalog service
106 Catalog {
107   Name = MyCatalog
108   dbname = bacula; user = bacula; password = ""
109 }
110
111 # Reasonable message delivery -- send most everything to email address
112 #  and to the console
113 Messages {
114   Name = Standard
115   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
116   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
117   MailOnError = @job_email@ = all, !terminate
118   operator = @job_email@ = mount
119   console = all, !skipped, !terminate, !restored
120 #
121 # WARNING! the following will create a file that you must cycle from
122 #          time to time as it will grow indefinitely. However, it will
123 #          also keep all your messages if the scroll off the console.
124 #
125   append = "@working_dir@/log" = all, !skipped
126 }
127
128 #
129 # Message delivery for daemon messages (no job).
130 Messages {
131   Name = Daemon
132   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
133   mail = @job_email@ = all, !skipped            
134   console = all, !skipped, !saved
135   append = "@working_dir@/log" = all, !skipped
136 }
137
138     
139 # Default pool definition
140 Pool {
141   Name = Default
142   Pool Type = Backup
143   Recycle = yes                       # Bacula can automatically recycle Volumes
144   AutoPrune = yes                     # Prune expired volumes
145   Volume Retention = 365d             # one year
146   Accept Any Volume = yes             # write on any volume in the pool
147 }