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