]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-win32-tape.conf.in
regress: Add update_win32 function to win32-fd-test
[bacula/bacula] / regress / scripts / bacula-dir-win32-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 = @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=@win32_client@
33   FileSet="Full Set"
34   Storage = tape
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=@win32_client@
48   FileSet="Full Set"
49   Storage = tape
50   Messages = Standard
51   Pool = Default
52   Where = @tmpdir@/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 }
61     File =  "@win32_file@"
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 = @win32_client@
80   Address = @win32_addr@
81   FDPort = @win32_port@
82   Catalog = MyCatalog
83   Password = "@win32_password@"
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 tape storage device
91 Storage {
92   Name = tape
93   Address = @hostname@-sd            # N.B. Use a fully qualified name here
94   SDPort = @sdport@
95   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
96   Device = tape                      # must be same as Device in Storage daemon
97   Media Type = tape                  # must be same as MediaType in Storage daemon
98   AutoChanger = yes
99   Maximum Concurrent Jobs = 4
100 }
101
102
103 # Generic catalog service
104 Catalog {
105   Name = MyCatalog
106   @libdbi@
107   dbname = @db_name@; user = @db_user@; password = "@db_password@"
108 }
109
110 # Reasonable message delivery -- send most everything to email address
111 #  and to the console
112 Messages {
113   Name = Standard
114   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
115   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
116 # MailOnError = @job_email@ = all, !terminate
117 # operator = @job_email@ = mount
118   console = all, !skipped, !terminate, !restored
119 #
120 # WARNING! the following will create a file that you must cycle from
121 #          time to time as it will grow indefinitely. However, it will
122 #          also keep all your messages if the scroll off the console.
123 #
124   append = "@working_dir@/log" = all, !skipped
125   catalog = 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 regression\) %r\" -s \"Regression daemon message\" %r"
133 # mail = @job_email@ = all, !skipped            
134   console = all, !skipped, !saved
135   append = "@working_dir@/log" = all, !skipped
136   catalog = all, !skipped
137 }
138
139     
140 # Default pool definition
141 Pool {
142   Name = Default
143   Pool Type = Backup
144   Recycle = yes                       # Bacula can automatically recycle Volumes
145   AutoPrune = yes                     # Prune expired volumes
146   Volume Retention = 365d             # one year
147 }