Director { Name = center.domain.local-dir # , default DIRport = 9101 # , sql # Bacula Catalog(mysql database) QueryFile = "/etc/bacula/scripts/query.sql" # WorkingDirectory = "/var/lib/bacula" # pid PidDirectory = "/var/run/bacula" # Maximum Concurrent Jobs = 1 # BC Password = "Passdir_1" # mail', Messages Messages = Daemon # DirAddress = 192.168.1.100 } Messages { # Director Name = Daemon # email mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" # (root admins@domain.ru) # , mail = milo@mydomena.ru = alert,error,fatal,terminate, !skipped # console = all, !skipped, !saved # append = "/var/log/bacula/bacula.log" = all, !skipped } Console { Name = center.domain.local-mon Password = "Passdir_1" CommandACL = status, .status } Messages { Name = Standard mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" mail = root = all, !skipped operator = root = mount console = all, !skipped, !saved append = "/var/log/bacula/bacula.log" = all, !skipped catalog = all } Catalog { Name = MyCatalog dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "SQL_pass" } # , # - @ , # @/etc/bacula/client-conf/client-dir-kubuntu.conf @/etc/bacula/client-conf/client-dir-winsrv.conf
/etc/bacula/bacula-sd.conf ( ) Storage { # SD Name = center-sd # SDPort = 9103 # ( ) WorkingDirectory = "/var/lib/bacula" # pid Pid Directory = "/var/run/bacula" # ip SDAddress = 192.168.1.100 } Director { # DD, , Name = center.domain.local-dir # Password = "Passtor_2" } # , # - @ # @/etc/bacula/client-conf/client-sd-kubuntu.conf @/etc/bacula/client-conf/client-sd-winsrv.conf
Director { Name = center.domain.local-dir Password = "PassClient_01" } FileDaemon { Name = center.domain.local-fd FDport = 9102 WorkingDirectory = /var/lib/bacula Pid Directory = /var/run/bacula Maximum Concurrent Jobs = 20 FDAddress = 192.168.1.100 # } Messages { Name = Standard director = center.domain.local-dir = all, !skipped, !restored }
Director { Name = center.domain.local-dir DIRport = 9101 Address = 192.168.1.100 Password = "Passdir_1" }
Client { # Name = kub-fd # ip Address = 192.168.1.20 # , FDPort = 9102 # mysql Bacula Catalog = MyCatalog # FD Password = "PassClient_3" # # , # ( !!) File Retention = 30 days # , Job Retention = 2 months # ( mysql) # AutoPrune = yes } Storage { # Name = Kubunt-nfs Password = "Passtor_2" # fqdn Address = 192.168.1.100 # SDPort = 9103 # SD Device = KubFileStorage # # bacula( # /media/nfs_linbackup_v1/kubuntu/Vol0001) Media Type = File } Schedule { Name = "KubDiff" Run = Level=Full on sat at 15:01 Run = Level=Differential on tue-fri at 15:02 } Pool { # , Name = poolkubnfs # , Pool Type = Backup # ( 1-, # 2-, 3-, 3- - 1-) AutoPrune = yes # bacula catalog ( mysql ) # Recycle = yes # (Voumes) # , # Volume Retention = 5 days Maximum Volume Bytes = 1G Maximum Volumes = 3 LabelFormat = "Kubvol" } FileSet { Name = "KubFileSet" Include { Options { # , # md5 signature = MD5 } # , File = /var/backups/opt/ File = /etc/hosts File = /etc/host.conf File = /etc/network/interfaces File = /etc/dnsmasq.conf File = /etc/resolv.conf File = /etc/ntp.conf File = /home/rk/testbackup/ } Exclude { # File = /home/rk/testbackup/NTFS.dmg } } Job { # Name = "BackupKubFull" # (backup or restore) Type = Backup # (, # ) Level = Full # SD Storage = Kubunt-nfs # -( # , ) FileSet="KubFileSet" # Schedule = "KubDiff" # ( # (volume) ) Pool = poolkubnfs # Client=kub-fd # , # , # , # - , # Write Bootstrap = "/var/lib/bacula/%n.bsr" # messages, # Messages = Standard # #( - !) ClientRunBeforeJob = "/root/sh/before_bg_db_backup.sh" # ClientRunAfterJob = "/root/sh/after_bg_db_backup.sh" # !!! } Job { # Name = "RestoreKub" Type = Restore Client=kub-fd FileSet="KubFileSet" Storage = winsrv-nfs Pool = poolkubnfs Messages = Standard # # . # , Where = /home/rb/1/ }
Client { # Name = winsrv-fd # ip Address = 192.168.1.40 # , FDPort = 9102 # mysql Bacula Catalog = MyCatalog # FD Password = "PassClient_3" # # , # ( !!) File Retention = 30 days # , Job Retention = 2 months # ( mysql) # AutoPrune = yes } Storage { # Name = winsrv-nfs Password = "Passtor_2" # fqdn Address = center.domain.local # SDPort = 9103 # SD Device = winsrvFileStorage # NFS NAS # bacula( /backup/bgbilling/Vol0001) Media Type = File } Schedule { Name = "WinDiff" Run = Level=Full on sat at 00:02 Run = Level=Differential on tue-fri at 00:03 } Pool { # , Name = poolwinsrvnfs # , Pool Type = Backup # ( 1-, # 2-, 3-, 3- - 1-) AutoPrune = yes # bacula catalog ( mysql ) # Recycle = yes # (Voumes) # , # Volume Retention = 5 days Maximum Volume Bytes = 1G Maximum Volumes = 3 LabelFormat = "winvol" } FileSet { Name = "WinFileSet" #VSS , # Enable VSS = no Include { Options { compression = GZIP signature = MD5 portable=yes noatime = yes checkfilechanges = yes Ignore Case = yes wildfile = "*.avi" wildfile = "*.wmv" wildfile = "*.mp3" wilddir = "System Volume Information" exclude = yes } # , File = "C:/Buh" File = "C:/Supply" File = "C:/Doc" } Exclude { File = "C:/Doc/myphoto/" } } Job { # Name = "BackupWinFull" # (backup or restore) Type = Backup # (, # ) Level = Full # SD Storage = winsrv-nfs # -( # , ) FileSet="WinFileSet" # Schedule = "WinDiff" # ( # (volume) ) Pool = poolwinsrvnfs # Client=winsrv-fd # , # , # , # - , # Write Bootstrap = "/var/lib/bacula/%n.bsr" # messages, # Messages = Standard } Job { # Name = "ResotreWinsrv" Type = Restore Client=winsrv-fd FileSet="WinFileSet" Storage = winsrv-nfs Pool = poolwinsrvnfs Messages = Standard # # . # , Where = /1/ }
Director { Name = center.domain.local-dir DIRport = 9101 address = 192.168.1.100 Password = "Passdir_1" }
Source: https://habr.com/ru/post/211755/
All Articles