Recently finished bacula config and run first one successfully!
I’m really do not understand now, why does this tool have a complicated system with batch of daemons and modules. For my opinion, backup tool just should know from where to wherever make a backup and how often.
But for further usage and remember this config, I’ll add it here.
Bacula config
Is is just a reminder, not a how-to, just want to not forget this.
Job configs is not so complicate, intuitively understandable.
Director
bacula-dir.conf
Code
Director { # define myself
Name = tet-redmine-dir
DIRport = 9101
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = /var/lib/bacula
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "tet-redmine-director" # Console password
Messages = Daemon
DirAddress = 127.0.0.1
}
Storage {
Name = File
# Do not use "localhost" here
Address = 127.0.0.1
SDPort = 9103
Password = tet-redmine-storage
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 20
}
Client {
Name = tet-redmine-fd
Address = 127.0.0.1
FDPort = 9102
Catalog = MyCatalog
Password = tet-redmine-client
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Concole
bconsole.conf
Code
Director {
Name = tet-redmine-dir
DIRport = 9101
address = 127.0.0.1
Password = "tet-redmine-director"
}
Storage
basula-sd.conf
Code
Storage { # definition of myself
Name = redmine-sd
SDport = 9103
WorkingDirectory = /var/lib/bacula
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = 127.0.0.1
}
Director {
Name = tet-redmine-dir
Password = tet-redmine-storage
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /var/backups/
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
}
File Daemon Client
bacula-fd.conf
Code
FileDaemon { # this is me
Name = redmine-fd
FDport = 9102
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
FDAddress = 127.0.0.1
}
Director {
Name = tet-redmine-dir
Password = tet-redmine-client
}
Александр Брюндтзвельт - гений, филантроп, 100 гривен в кармане.
Этот блог - "сток" моих мыслей и заметок. Достаточно одного взгляда на него, чтобы понять, что такой же бардак творится у меня в голове.
Если вам этот бардак интересен - милости прошу.
Александр Брюндтзвельт - гений, филантроп, 100 гривен в кармане.
Этот блог - "сток" моих мыслей и заметок. Достаточно одного взгляда на него, чтобы понять, что такой же бардак творится у меня в голове.
Если вам этот бардак интересен - милости прошу.