Bacula : घटकों को कॉन्फ़िगर करें2024/08/01 |
|
Bacula घटकों को कॉन्फ़िगर करें। |
|
| [1] | Bacula Director कॉन्फ़िगर करें। |
|
root@dlp:~#
vi /etc/bacula/bacula-dir.conf
Director { # define myself
Name = dlp.srv.world-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/run/bacula"
Maximum Concurrent Jobs = 20
# पंक्ति 23 : डायरेक्टर डेमॉन के लिए पासवर्ड सेट करें
Password = "password" # Console password
Messages = Daemon
# सुनने का पता
DirAddress = 0.0.0.0
.....
.....
Job {
Name = "RestoreFiles"
Type = Restore
Client=dlp.srv.world-fd
Storage = File1
# The FileSet and Pool directives are not used by Restore Jobs
# but must not be removed
FileSet="Full Set"
Pool = File
Messages = Standard
# पंक्ति 99 : पुनर्स्थापित करने के लिए लक्ष्य निर्देशिका निर्दिष्ट करें
Where = /tmp
.....
.....
# पंक्ति 124 : बैकअप लक्ष्य निर्देशिका निर्दिष्ट करें
File = /etc
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
# पंक्ति 166 : परिवर्तन
File = "/var/lib/bacula/bacula.sql"
.....
.....
Client {
Name = dlp.srv.world-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
# पंक्ति 176 : फ़ाइल डेमॉन के लिए पासवर्ड
Password = "password" # password for FileDaemon
File Retention = 60 days # 60 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
.....
.....
Autochanger {
Name = File1
# Do not use "localhost" here
# पंक्ति 202 : नोट के अनुसार अपने होस्ट का FQDN बदलें
Address = dlp.srv.world # N.B. Use a fully qualified name here
SDPort = 9103
# पंक्ति 204 : स्टोरेज डेमॉन के लिए पासवर्ड
Password = "password"
Device = FileChgr1
Media Type = File1
Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
Autochanger = File1 # point to ourself
}
.....
.....
Catalog {
Name = MyCatalog
# पंक्ति 241 : DB कनेक्शन जानकारी
dbname = "bacula"; dbuser = "bacula"; dbpassword = "password"
}
.....
.....
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
# पंक्ति 302 : वॉल्यूम प्रतिधारण अवधि
Volume Retention = 365 days # one year
# अधिकतम वॉल्यूम आकार
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
# अधिकतम वॉल्यूम संख्या
Maximum Volumes = 100 # Limit number of Volumes in Pool
# वॉल्यूम फ़ाइलों के लिए उपसर्ग
Label Format = "Vol-" # Auto label
}
.....
.....
# पंक्ति 320 : ट्रे-मॉनीटर पासवर्ड
Console {
Name = dlp.srv.world-mon
Password = "password"
CommandACL = status, .status
}
root@dlp:~#
vi /etc/bacula/bconsole.conf
Director {
Name = dlp.srv.world-dir
DIRport = 9101
address = localhost
# डायरेक्टर के लिए पासवर्ड
Password = "password"
}
~
root@dlp:~# systemctl restart bacula-dir |
| [2] | Bacula संग्रहण कॉन्फ़िगर करें। |
|
root@dlp:~#
vi /etc/bacula/bacula-sd.conf
Storage { # definition of myself
Name = dlp.srv.world-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/run/bacula"
Plugin Directory = "/usr/lib/bacula"
Maximum Concurrent Jobs = 20
# पंक्ति 22 : सुनने का पता
SDAddress = 0.0.0.0
.....
.....
Director {
Name = dlp.srv.world-dir
# पंक्ति 30 : स्टोरेज डेमॉन के लिए पासवर्ड सेट करें
Password = "password"
}
.....
.....
# पंक्ति 39 : ट्रे-मॉनीटर पासवर्ड
Director {
Name = dlp.srv.world-mon
Password = "password"
Monitor = yes
}
# बैकअप फ़ाइलों के लिए लक्ष्य निर्देशिका बदलें (नीचे दिए गए उदाहरण में [/tmp] में परिवर्तन) root@dlp:~# sed -i -e "s/\/nonexistent\/path\/to\/file\/archive\/dir/\/tmp/g" /etc/bacula/bacula-sd.conf systemctl restart bacula-sd |
| [3] | Bacula फ़ाइल कॉन्फ़िगर करें। |
|
root@dlp:~#
vi /etc/bacula/bacula-fd.conf
Director {
Name = dlp.srv.world-dir
# पंक्ति 17 : फ़ाइल डेमॉन के लिए पासवर्ड सेट करें
Password = "password"
}
.....
.....
# पंक्ति 26 : टिप्पणी अभी करें
Director {
Name = bacula-mon
Password = "password"
Monitor = yes
}
.....
.....
FileDaemon { # this is me
Name = dlp.srv.world-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /run/bacula
Maximum Concurrent Jobs = 20
Plugin Directory = /usr/lib/bacula
# पंक्ति 40 : सुनने का पता
FDAddress = 0.0.0.0
root@dlp:~# systemctl restart bacula-fd |
| Sponsored Link |
|
|