]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir.conf.maxruntime.in
regress: add doc
[bacula/bacula] / regress / scripts / bacula-dir.conf.maxruntime.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.27 (24 October 2006) -- debian testing/unstable
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   SubSysDirectory = "@subsysdir@"
22   Maximum Concurrent Jobs = 1
23   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
24   Messages = Standard
25 }
26
27 JobDefs {
28   Name = "DefaultJob"
29   Type = Backup
30   Level = Incremental
31   Client = @hostname@-fd 
32   FileSet = FS_TESTJOB
33   Storage = File
34   Messages = Standard
35   Pool = Default
36   Priority = 10
37   Maximum Concurrent Jobs = 16
38 }
39
40 FileSet {
41  Name = FS_TESTJOB
42  Include {
43    File=<@tmpdir@/file-list
44  }
45 }
46
47 FileSet {
48  Name = FS_FIFO
49  Include {
50    Options {
51      read fifo = yes
52    }
53    # wait 60s per fifo
54    File=@tmpdir@/fifo
55    File=@tmpdir@/fifo2
56    File=@tmpdir@/fifo3
57  }
58 }
59
60 Job {
61   Name = "RUN_MAXWAITTIME"
62   JobDefs = DefaultJob
63   FileSet = FS_TESTJOB
64   MaxWaitTime = 2min
65 }
66
67 Job {
68   Name = "RUN_MAXSTARTDELAY"
69   JobDefs = DefaultJob
70   FileSet = FS_TESTJOB
71   MaxStartDelay = 30sec
72   Pool = PoolA
73   Runbeforejob = "/bin/echo NEVER start this"
74 }
75
76 Job {
77   Name = "RUN_MAXRUNTIME"
78   JobDefs = DefaultJob
79   FileSet = FS_FIFO
80   MaxRunTime = 1min
81   Max Start Delay = 4 hours
82   Maximum Concurrent Jobs = 10
83   Spool Data = no
84   Reschedule On Error = yes
85   Reschedule Interval = 30sec
86   Reschedule Times = 2
87   Max Full Interval = 28 days
88   Full Max Run Time = 1min
89   Cancel Queued Duplicates = no
90
91 }
92
93 # Client (File Services) to backup
94 Client {
95   Name = @hostname@-fd
96   Address = @hostname@
97   FDPort = @fdport@
98   Catalog = MyCatalog
99   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
100   File Retention = 30d                # 30 days
101   Job Retention = 180d                # six months
102   AutoPrune = yes                     # Prune expired Jobs/Files
103   Maximum Concurrent Jobs = 4
104 }
105
106 # Definiton of file storage device
107 Storage {
108   Name = File
109   Address = @hostname@                # N.B. Use a fully qualified name here
110   SDPort = @sdport@
111   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
112   Device = FileStorage
113   Media Type = File
114   Maximum Concurrent Jobs = 4
115 }
116
117 # Generic catalog service
118 Catalog {
119   Name = MyCatalog
120   @libdbi@
121   dbname = @db_name@; user = @db_user@; password = "@db_password@"
122 }
123
124
125 Messages {
126   Name = Standard
127   console = all, !skipped, !saved
128   catalog = all, !skipped
129 }
130
131 # Default pool definition
132 Pool {
133   Name = Default
134   Pool Type = Backup
135   Recycle = yes                       # Bacula can automatically recycle Volumes
136   AutoPrune = yes                     # Prune expired volumes
137   Volume Retention = 365d             # one year
138   Maximum Volume Bytes = 1M
139 }
140
141
142 # Default pool definition
143 Pool {
144   Name = PoolA
145   Pool Type = Backup
146   Recycle = yes                       # Bacula can automatically recycle Volumes
147   AutoPrune = yes                     # Prune expired volumes
148   Volume Retention = 365d             # one year
149 }