This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
/
bareos-dir.conf.quota-includefailed-test.in
122 lines (105 loc) · 2.82 KB
/
bareos-dir.conf.quota-includefailed-test.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#
# Default Bareos Director Configuration file
#
# The only thing that MUST be changed is to add one or more
# file or directory names in the Include directive of the
# FileSet resource.
#
# You might also want to change the default email address
# from root to your address. See the "mail" and "operator"
# directives in the Messages resource.
#
Director { # define myself
Name = @hostname@-dir
DIRPort = @dirport@ # where we listen for UA connections
QueryFile = "@scriptdir@/query.sql"
WorkingDirectory = "@working_dir@"
PidDirectory = "@piddir@"
SubSysDirectory = "@subsysdir@"
Maximum Concurrent Jobs = 4
Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password
Messages = Standard
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = @hostname@-fd
FileSet = FS_TESTJOB
Storage = File
Messages = Standard
Pool = Default
Priority = 10
Maximum Concurrent Jobs = 16
}
Job {
Name = "BackupClient1"
JobDefs = "DefaultJob"
}
Job {
Name = "Errorjob"
JobDefs = "DefaultJob"
# Job always fails
RunScript {
RunsWhen = After
Fail Job On Error = yes
Command = "/bin/false"
}
}
FileSet {
Name = FS_TESTJOB
Include {
File=<@tmpdir@/file-list
}
}
#dir: BeforeJob: run command "/bin/echo RunBeforeJob"
#fd: ClientRunBeforeJob: ClientRunBeforeJob
#fd: ClientAfterJob: run command "/bin/echo ClientRunAfterJob"
#dir: AfterJob: run command "/bin/echo RunAfterJob"
# Client (File Services) to backup
Client {
Name = @hostname@-fd
Address = @hostname@
FDPort = @fdport@
Catalog = MyCatalog
Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
File Retention = 30d # 30 days
Job Retention = 180d # six months
AutoPrune = yes # Prune expired Jobs/Files
Maximum Concurrent Jobs = 4
# Quota
#Soft Quota = 50 mb
#Soft Quota Grace Period = 15 second
# Strict Quotas = Yes
Hard Quota = 50 mb
Quota Include Failed Jobs = yes
}
# Definiton of file storage device
Storage {
Name = File
Address = @hostname@ # N.B. Use a fully qualified name here
SDPort = @sdport@
Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 4
}
# Generic catalog service
Catalog {
Name = MyCatalog
@libdbi@
dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
Messages {
Name = Standard
console = all, !skipped, !saved
catalog = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365d # one year
}