]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir.conf.maxtime.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / bacula-dir.conf.maxtime.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 }
82
83 # Client (File Services) to backup
84 Client {
85   Name = @hostname@-fd
86   Address = @hostname@
87   FDPort = @fdport@
88   Catalog = MyCatalog
89   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
90   File Retention = 30d                # 30 days
91   Job Retention = 180d                # six months
92   AutoPrune = yes                     # Prune expired Jobs/Files
93   Maximum Concurrent Jobs = 4
94 }
95
96 # Definiton of file storage device
97 Storage {
98   Name = File
99   Address = @hostname@                # N.B. Use a fully qualified name here
100   SDPort = @sdport@
101   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
102   Device = FileStorage
103   Media Type = File
104   Maximum Concurrent Jobs = 4
105 }
106
107 # Generic catalog service
108 Catalog {
109   Name = MyCatalog
110   @libdbi@
111   dbname = @db_name@; user = @db_user@; password = "@db_password@"
112 }
113
114
115 Messages {
116   Name = Standard
117   console = all, !skipped, !saved
118   catalog = all, !skipped
119 }
120
121 # Default pool definition
122 Pool {
123   Name = Default
124   Pool Type = Backup
125   Recycle = yes                       # Bacula can automatically recycle Volumes
126   AutoPrune = yes                     # Prune expired volumes
127   Volume Retention = 365d             # one year
128   Maximum Volume Bytes = 1M
129 }
130
131
132 # Default pool definition
133 Pool {
134   Name = PoolA
135   Pool Type = Backup
136   Recycle = yes                       # Bacula can automatically recycle Volumes
137   AutoPrune = yes                     # Prune expired volumes
138   Volume Retention = 365d             # one year
139 }