]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir.conf.regexwhere.in
Delete unwanted subdirectory
[bacula/bacula] / regress / scripts / bacula-dir.conf.regexwhere.in
1 # TODO
2 # Orphaned buffer:  localhost-dir     40 bytes buf=80e9a70 allocated at dird_conf.c:1338
3 # bacula-dir: dird.c:656 Hey something is wrong. p=0x135174768
4
5 Director {                            # define myself
6   Name = @hostname@-dir
7   DIRport = 8101                # where we listen for UA connections
8   QueryFile = "@scriptdir@/query.sql"
9   WorkingDirectory = "@working_dir@"
10   PidDirectory = "@piddir@"
11   SubSysDirectory = "@subsysdir@"
12   Maximum Concurrent Jobs = 4
13   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
14   Messages = Standard
15 }
16
17 Job {
18   Name = "backup"
19   Type = Backup
20   Level = Full
21   Client = @hostname@-fd 
22   FileSet = FS_TESTJOB
23   Storage = File
24   Messages = Standard
25   Pool = Default
26   Priority = 10
27   Maximum Concurrent Jobs = 16
28 }
29
30 FileSet {
31  Name = FS_TESTJOB
32  Include {
33    File=</tmp/file-list
34  }
35 }
36
37 JobDefs {
38   Name = "DefaultRestore"
39   Type = Restore
40   Storage = File
41   Client=@hostname@-fd
42   FileSet="FS_TESTJOB"
43   Messages = Standard
44   Pool = Default
45   Replace = Always
46 }
47
48 Job {
49   Name = JobA
50   JobDefs = DefaultRestore
51   RegexWhere = !po$!old.po!
52 }
53
54 Job {
55   Name = JobB
56   JobDefs = DefaultRestore
57   add prefix = /tmp/bacula-restore
58   add suffix = .old
59   strip prefix = /build
60 }
61
62 Job {
63   Name = JobC
64   JobDefs = DefaultRestore
65   Where = /tmp/bacula-restore
66 }
67
68 Job {
69   Name = JobD
70   JobDefs = DefaultRestore
71   RegexWhere = "doesnt work"
72 }
73
74 Job {
75   Name = JobE
76   JobDefs = DefaultRestore
77   RegexWhere = "/BUILD/tmp/i,!po/!!"
78 }
79
80 Job {
81   Name = JobF
82   JobDefs = DefaultRestore
83   RegexWhere = "/something witch doesn't match/tmp/i"
84 }
85
86 Job {
87   Name = JobG
88   JobDefs = DefaultRestore
89   Where = /tmp/bacula-restore
90 }
91
92
93 # Client (File Services) to backup
94 Client {
95   Name = @hostname@-fd
96   Address = @hostname@
97   FDPort = 8102
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 = 8103
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   dbname = regress; user = regress; password = ""
121 }
122
123
124 Messages {
125   Name = Standard
126   console = all, !skipped, !saved
127 }
128
129 # Default pool definition
130 Pool {
131   Name = Default
132   Pool Type = Backup
133   Recycle = yes                       # Bacula can automatically recycle Volumes
134   AutoPrune = yes                     # Prune expired volumes
135   Volume Retention = 365d             # one year
136 }