Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Default Bacula 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.
- #
- # For Bacula release 5.0.0 (26 January 2010) -- redhat
- #
- # 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 = bacula-dir
- DIRport = 9101 # where we listen for UA connections
- QueryFile = "/usr/libexec/bacula/query.sql"
- WorkingDirectory = "/var/spool/bacula"
- PidDirectory = "/var/run"
- Maximum Concurrent Jobs = 1
- Password = "password" # Console password
- Messages = Daemon
- }
- JobDefs {
- Name = "DefaultJob"
- Type = Backup
- Level = Incremental
- Client = bacula-fd
- FileSet = "Full Set"
- Storage = File
- Messages = Standard
- Pool = File
- Priority = 10
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- JobDefs {
- Name = "DefaultWinJob"
- Type = Backup
- Level = Full
- Client = windows7-fd #win client name
- FileSet = "Files On Windows"
- Storage = File
- Messages = Standard
- Pool = File
- SpoolAttributes = yes
- Priority = 10
- Write Bootstrap = "var/spool/bacula/%c.bsr"
- }
- #
- # Define the main nightly save backup job
- # By default, this job will back up to disk in /tmp
- Job {
- Name = "BackupPlikiLocal"
- Client = bacula-fd
- JobDefs = "DefaultJob"
- }
- Job {
- Name = "BackupPlikiWindows"
- Client = windows7-fd #win client name
- JobDefs = "DefaultWinJob"
- }
- #
- # Standard Restore template, to be changed by Console program
- # Only one such job is needed for all Jobs/Clients/Storage ...
- #
- Job {
- Name = "RestoreFilesLocal"
- Type = Restore
- Client = bacula-fd
- FileSet="Full Set"
- Storage = File
- Pool = File
- Messages = Standard
- Where = /root/restores
- }
- Job {
- Name = "RestoreFileWindows"
- Type = Restore
- Client = windows7-fd
- FileSet="Files On Windows"
- Storage = File
- Pool = File
- Messages = Standard
- Where = C:/restores
- }
- # List of files to be backed up
- FileSet {
- Name = "Files On Windows"
- Include {
- Options {
- signature = MD5
- }
- File = "C:/DoBackupu"
- }
- }
- FileSet {
- Name = "Full Set"
- Include {
- Options {
- signature = MD5
- }
- File = /root/pliki/
- }
- }
- FileSet {
- Name = "Catalog"
- Include {
- Options {
- signature = MD5
- }
- File = "/var/spool/bacula/bacula.sql"
- }
- }
- # Client (File Services) to backup
- Client {
- Name = bacula-fd
- Address = localhost
- FDPort = 9102
- Catalog = MyCatalog
- Password = "password" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = yes # Prune expired Jobs/Files
- }
- #
- # Second Client (File Services) to backup
- # You should change Name, Address, and Password before using
- #
- Client {
- Name = windows7-fd #win client name
- Address = 172.19.129.113
- FDPort = 9102
- Catalog = MyCatalog
- Password = "password" # password for FileDaemon 2
- File Retention = 60 days # 60 days
- Job Retention = 6 months # six months
- AutoPrune = yes # Prune expired Jobs/Files
- }
- # Definition of file storage device
- Storage {
- Name = File
- Address = 172.19.129.153 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "password"
- Device = FileStorage
- Media Type = File
- }
- # Generic catalog service
- Catalog {
- Name = MyCatalog
- # Uncomment the following line if you want the dbi driver
- # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
- dbname = "bacula"; dbuser = "bacula"; dbpassword = "password"
- }
- # Reasonable message delivery -- send most everything to email address
- # and to the console
- 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@localhost = all, !skipped
- operator = root@localhost = mount
- console = all, !skipped, !saved
- append = "/var/spool/bacula/log" = all, !skipped
- catalog = all
- }
- #
- # Message delivery for daemon messages (no job).
- Messages {
- Name = Daemon
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = root@localhost = all, !skipped
- console = all, !skipped, !saved
- append = "/var/log/bacula.log" = all, !skipped
- }
- # Default pool definition
- Pool {
- Name = Default
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 365 days # one year
- }
- # File Pool definition
- Pool {
- Name = File
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- 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
- }
- # Scratch pool definition
- Pool {
- Name = Scratch
- Pool Type = Backup
- }
- #
- # Restricted console used by tray-monitor to get the status of the director
- #
- Console {
- Name = bacula-mon
- Password = "password"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement