Hi!

Am Sonntag, 4. März 2018 02:15:54 UTC+1 schrieb Stefan Klatt:

>     I think we need to review your configuration

Apparently :) I have attached a stripped-down, sanitized example.

Thanks!

Ciao

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.
Director {
  Name = mydc-cc001.my.domain.zz-dir
  QueryFile = "/usr/lib/bareos/scripts/query.sql"
  Maximum Concurrent Jobs = 20
  Password = "Fb6f11FXwielj8EINQ934Dndoo7cRK/L2YSQUBcYlDzP"
  Messages = Daemon
  # Plugin Directory = /usr/lib64/bareos/plugins
}

Catalog {
  Name = MyCatalog
  dbdriver = "mysql"
  dbname = "bareos"
  dbuser = "bareos"
  dbpassword = "bareos"
}

#
# Lokale konfiguration
#

Client {
  Name = mydc-cc001.my.domain.zz-fd
  Address = localhost
  FDPort = 9102
  Catalog = MyCatalog
  Password = "w9o2LScd6JcPoZnIkAbjJC3Xm3y317vUbASuRV2UXDcKufdVkEL2QDcPvFIzXfSg"
  File Retention = 120 days
  Job Retention = 6 months
  AutoPrune = yes
}

Schedule {
  Name = "CatalogSchedule"
  Run = Full sun-sat at 23:10
}

FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bareos/bareos.sql" # database dump
    File = "/etc/bareos"                # configuration
  }
}

Job {
  Name = "BackupCatalog"
  Storage = storagedaemon.my.domain.zz-backup-infrastructure
  Type = Backup
  Client = mydc-cc001.my.domain.zz-fd
  Messages = Standard
  Pool = CatalogToDiskPool
  Level = Full
  FileSet="Catalog"
  Schedule = "CatalogSchedule"
  RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
  RunAfterJob  = "/usr/lib/bareos/scripts/delete_catalog_backup"
  Write Bootstrap = "|/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \" -s 
\"Bootstrap for Job %j\" root@localhost"
  Priority = 11
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client = mydc-cc001.my.domain.zz-fd
  FileSet="RestoreSet"
  Pool = CatalogToDiskPool
  Messages = Standard
  Where = /tmp/bareos-restores
}

FileSet {
  Name = "RestoreSet"
  Include {
    Options {
      signature = MD5
    }
    File = /usr/sbin
  }
  Exclude {
    File = /var/lib/bareos
    File = /var/lib/bareos/storage
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

# When to do the backups, full backup on first sunday of the month,
#  differential (i.e. incremental since full) every other sunday,
#  and incremental backups other days
Schedule {
  Name = "Standard"
  Run = Full 1st sun at 23:35
  Run = Differential 2nd-5th sun at 23:35
  Run = Incremental mon-sat at 23:35
}

Schedule {
  Name = "MySQLXtraBackup"
  Run = Level = Full mon-sun at 23:45
}

Schedule {
  Name = "PostgresqlLogs"
  Run = Level = Full sun at 1:10
  Run = Level = Incremental mon-sat at 20:00
  Run = Level = Incremental mon-sat at 06:00
}
Schedule {
  Name = "PostgresqlBase"
  Run = Level = Full sun at 01:00
}

Schedule {
  Name = "OracleFull"
  Run = Full 1st sun at 04:00
  Run = Differential 2nd-5th sun at 04:00
  Run = Incremental mon-sat at 04:00
}

Schedule {
  Name = "Daytime"
  Run = Full 1st sun at 10:00
  Run = Differential 2nd-5th sun at 10:00
  Run = Incremental mon-sat at 10:00
}



Messages {
  Name = Standard
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s 
\"Bareos: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s 
\"Bareos: Intervention needed for %j\" %r"
  mail = xxxxxxx = all, !skipped
  operator = xxxxxxx = mount
  console = all, !skipped, !saved
  syslog = all
  catalog = all
}


Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s 
\"Bareos daemon message\" %r"
  mail = xxxxxxxx = all, !skipped
  console = all, !skipped, !saved
  append = "/var/log/bareos/bareos.log" = all, !skipped
}


#
# Verwaltungszugänge: Console (BAT, etc.) sowie Web-UI
#
Console {
  Name = mydc-cc001.my.domain.zz-mon
  Password = "xV5mv0r8i2mMlZLShJFNwU50r2dZZS1j3NRh2U68ETIa"
  CommandACL = status, .status
}

Console {
  Name = admin
  Password = "b!Happ/"
  Profile = webui
}

Profile {
  Name = webui
  CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, 
!purge, !sqlquery, !umount, !unmount, *all*
  Job ACL = *all*
  Schedule ACL = *all*
  Catalog ACL = *all*
  Pool ACL = *all*
  Storage ACL = *all*
  Client ACL = *all*
  FileSet ACL = *all*
  Where ACL = *all*
  Plugin Options ACL = *all*
}

FileSet {
      Name = "mydc-cc001.my.domain.zz-Set"
      Include {
        Options {
          signature = MD5
          onefs = no
          aclsupport = no
          sparse = yes
          compression = LZO
      }
      File = /
      }
      Exclude {
            File = /tmp
            File = /var/tmp
            File = /proc
            File = /sys
            File = /dev/shm
            File = /dev/pts
            File = /var/lib/nfs/rpc_pipefs
            File = /backup
            File = /log # Extra-Job
            File = /secondary/centos # Centos-Mirror, kann neu gezogen werden
            File = /var/lib/mysql # Wird via percona xtrabackup gesichert
          }
}

Job {
    Name = "mydc-cc001.my.domain.zz-ToDisk"
    JobDefs = "dc01-Infrastructure"
    Client = mydc-cc001.my.domain.zz-fd
    FileSet = "mydc-cc001.my.domain.zz-Set"
    Client Run Before Job = "/root/mysqlxtrabackup.sh"
}


FileSet {
      Name = "mydc-cc001.my.domain.zz-LogSet"
      Include {
        Options {
          signature = MD5
          onefs = no
          aclsupport = no
          sparse = yes
          compression = LZO
      }
      File = /log
      }
}

Job {
    Name = "mydc-cc001.my.domain.zz-LogfilesToDisk"
    JobDefs = "dc01-Infrastructure"
    Client = mydc-cc001.my.domain.zz-fd
    FileSet = "mydc-cc001.my.domain.zz-LogSet"
    Schedule = "Daytime"
}
#############################################################
#
#       Storage-Daemons
#
#############################################################

Storage {
  Name = storagedaemon.my.domain.zz-backup-infrastructure
  Address = 1.2.3.4
  Password = xxxx
  Device = InfrastructureBackup
  Media Type = "RadosFile"
  Maximum Concurrent Jobs = 20
}

Storage {
  Name = storagedaemon.my.domain.zz-backup-projectx
  Address = 1.2.3.4
  Password = xxxx
  Device = PROJECTXBackup
  Media Type = "RadosFile"
  Maximum Concurrent Jobs = 20
}

Storage {
  Name = storagedaemon.my.domain.zz-backup-projects
  Address = 1.2.3.4
  Password = xxxx
  Device = ProjectsBackup
  Media Type = "RadosFile"
  Maximum Concurrent Jobs = 20
}


#############################################################
#
#       Pools
#
#############################################################

Pool {
     Name = CatalogToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-infrastructure
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Volume Retention = 356 days
     Action On Purge = Truncate
     Maximum Volume Bytes = 2G
     Maximum Volume Jobs = 7
     Maximum Volumes = 1000
     Label Format = "CatalogVolume-"
}


Pool {
     Name = DC01InfrastructureFullToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-infrastructure
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 50G
     Maximum Volume Jobs = 1
     Maximum Volumes = 800
     Volume Retention = 100 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152

     Action On Purge = Truncate
     Label Format = "DC01InfrastructureFullVolume-"
}

Pool {
     Name = DC01InfrastructureDiffToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-infrastructure
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 20G
     Maximum Volume Jobs = 1
     Maximum Volumes = 350
     Volume Retention = 33 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152
     Action On Purge = Truncate
     Label Format = "DC01InfrastructureDiffVolume-"
}

Pool {
     Name = DC01InfrastructureIncrToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-infrastructure
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 10G
     Maximum Volumes = 1000
     Maximum Volume Jobs = 1
     Volume Retention = 10 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152
     Action On Purge = Truncate
     Label Format = "DC01InfrastructureIncrVolume-"
}

 
Pool {
     Name = DC01PROJECTXFullToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-projectx
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 50G
     Maximum Volume Jobs = 1
     Maximum Volumes = 800
     Volume Retention = 100 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152

     Action On Purge = Truncate
     Label Format = "DC01PROJECTXFullVolume-"
}

Pool {
     Name = DC01PROJECTXDiffToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-projectx
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 20G
     Maximum Volume Jobs = 1
     Maximum Volumes = 350
     Volume Retention = 33 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152
     Action On Purge = Truncate
     Label Format = "DC01PROJECTXDiffVolume-"
}

Pool {
     Name = DC01PROJECTXIncrToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-projectx
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 10G
     Maximum Volumes = 1000
     Maximum Volume Jobs = 1
     Volume Retention = 10 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152
     Action On Purge = Truncate
     Label Format = "DC01PROJECTXIncrVolume-"
}
 
Pool {
     Name = DC01ProjectsFullToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-projects
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 50G
     Maximum Volume Jobs = 1
     Maximum Volumes = 800
     Volume Retention = 100 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152

     Action On Purge = Truncate
     Label Format = "DC01ProjectsFullVolume-"
}

Pool {
     Name = DC01ProjectsDiffToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-projects
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 20G
     Maximum Volume Jobs = 1
     Maximum Volumes = 350
     Volume Retention = 33 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152
     Action On Purge = Truncate
     Label Format = "DC01ProjectsDiffVolume-"
}

Pool {
     Name = DC01ProjectsIncrToDiskPool
     Storage = storagedaemon.my.domain.zz-backup-projects
     Pool Type = Backup
     Recycle = yes
     AutoPrune = yes
     Maximum Volume Bytes = 10G
     Maximum Volumes = 1000
     Maximum Volume Jobs = 1
     Volume Retention = 10 days
     Maximum Block Size = 4194304
     Minimum Block Size = 2097152
     Action On Purge = Truncate
     Label Format = "DC01ProjectsIncrVolume-"
}


#
# Dummy-Default-Pool
#

# Default pool definition
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365 days
}

FileSet {
      Name = "generic"
      Include {
        Options {
          signature = MD5
          onefs = no
          aclsupport = no
          sparse = yes
          compression = GZIP
      }
      File = /
      }
      Exclude {
            File = /tmp
            File = /var/tmp
            File = /proc
            File = /sys
            File = /dev/shm
            File = /dev/pts
            File = /var/lib/nfs/rpc_pipefs
          }
}

JobDefs {
        Name = "dc01-Defs"
        Type = Backup
        Schedule = "Standard"
        Messages = Standard
        Priority = 10
        Write Bootstrap = "/var/spool/bareos/working/%c.bsr"

        Allow Duplicate Jobs = no
        Cancel Lower Level Duplicates = yes # Full sticht Incr/Diff aus. usw.
        Cancel Queued Duplicates = yes
        Cancel Running Duplicates = no
        Allow Mixed Priority = yes
}

JobDefs {
        Name = "dc01-Infrastructure"
        JobDefs = "dc01-Defs"
        Storage = storagedaemon.my.domain.zz-backup-infrastructure
        Pool = DC01InfrastructureFullToDiskPool
        Full Backup Pool = DC01InfrastructureFullToDiskPool
        Incremental Backup Pool = DC01InfrastructureIncrToDiskPool
        Differential Backup Pool = DC01InfrastructureDiffToDiskPool
}

JobDefs {
        Name = "dc01-PROJECTX"
        JobDefs = "dc01-Defs"
        Storage = storagedaemon.my.domain.zz-backup-projectx
        Pool = DC01PROJECTXFullToDiskPool
        Full Backup Pool = DC01PROJECTXFullToDiskPool
        Incremental Backup Pool = DC01PROJECTXIncrToDiskPool
        Differential Backup Pool = DC01PROJECTXDiffToDiskPool
}

JobDefs {
        Name = "dc01-Projects"
        JobDefs = "dc01-Defs"
        Pool = DC01ProjectsFullToDiskPool
        Storage = storagedaemon.my.domain.zz-backup-projects
        Full Backup Pool = DC01ProjectsFullToDiskPool
        Incremental Backup Pool = DC01ProjectsIncrToDiskPool
        Differential Backup Pool = DC01ProjectsDiffToDiskPool
}


FileSet {
      Name = "pxxyz-fileset"
      Include {
        Options {
          signature = MD5
          onefs = no
          aclsupport = no
          sparse = yes
          compression = GZIP
        }

      File = /opt/backup
      }
}



JobDefs {
        Name = "pxxyz"
        JobDefs = "dc01-PROJECTX"
        FileSet = "pxxyz-fileset"
        Accurate = yes

        Client Run Before Job = "/opt/xyzbackup.sh"
        Client Run After Job = "/bin/rm -f 
/opt/backup/backup-xyz-????-??-??*.tar.gz"
}

FileSet {
      Name = "pxoracle-fileset"
      Include {
        Options {
          signature = MD5
          onefs = no
          aclsupport = no
          sparse = yes
          compression = GZIP
        }

      File = /opt/backup
      }
}

JobDefs {
        Name = "pxoracle"
        JobDefs = "dc01-PROJECTX"
        FileSet = "pxoracle-fileset"
        Accurate = yes
        Client Run Before Job = "/opt/backup/rman/backupset.full.sh"
}

Client {
        Name = www.my.domain.zz-fd
        Password = xxxxx
        Address = 2.3.4.5
        FDPort = 9102
        Catalog = MyCatalog
        File Retention = 120 days
        Job Retention = 6 months
        AutoPrune = yes
        Passive = yes
}

Job {
    Name = "www-ToDisk"
    JobDefs = "dc01-Infrastructure"
    Accurate = yes
    Client = www.my.domain.zz-fd
    FileSet = "generic"
    Client Run Before Job = "/root/xtrabackup.sh"
}
 Client {
        Name = projectx-xyz10.projectx.my.domain.zz-fd
        Password = xxxxx
        Address = 3.4.5.6
        FDPort = 9102
        Catalog = MyCatalog
        File Retention = 120 days
        Job Retention = 6 months
        AutoPrune = yes
}

Job {
    Name = "projectx-xyz10-xyz"
    JobDefs = "pxxyz"
    Client = "projectx-xyz10.projectx.my.domain.zz-fd"
}
Client {
        Name = customer-service1.dc01.my.domain.zz-fd 
        Password = xxx
        Address = customer1.my.domain.zz
        FDPort = 9103
        Catalog = MyCatalog
        File Retention = 120 days
        Job Retention = 6 months
        AutoPrune = yes
}



Job {
    Name = "customer-service1.dc01.my.domain.zz-ToDisk"
    JobDefs = "dc01-Projects"
    Accurate = yes
    Client = customer-service1.dc01.my.domain.zz-fd
 
    FileSet = "generic"
}




 
Storage {
  Name = storagedaemon.my.domain.zz-backup
  Maximum Concurrent Jobs = 10
  Plugin Directory = /usr/lib64
}

Director {
  Name = mydc-cc001.my.domain.zz-dir
  Password = xxxx
}

Device {
  Name = InfrastructureBackup
  Device Type = Rados
  Media Type = RadosFile

  Archive Device = "Rados Device 2"
  Device Options = 
"conffile=/etc/ceph/ceph.conf,poolname=backup-fra1-infrastructure,striped,stripe_unit=4194304,stripe_count=8,object_size=33554432"

  Maximum Block Size = 4194304
  Minimum Block Size = 2097152

  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  Maximum Concurrent Jobs = 4
}

Device {
  Name = PROJECTXBackup
  Device Type = Rados
  Media Type = RadosFile

  Archive Device = "Rados Device 3"
  Device Options = 
"conffile=/etc/ceph/ceph.conf,poolname=backup-fra1-projectx,striped,stripe_unit=4194304,stripe_count=16"

  Maximum Block Size = 4194304
  Minimum Block Size = 2097152

  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  Maximum Concurrent Jobs = 4
}

Device {
  Name = ProjectsBackup
  Device Type = Rados
  Media Type = RadosFile

  Archive Device = "Rados Device 4"
  Device Options = 
"conffile=/etc/ceph/ceph.conf,poolname=backup-fra1-projects,striped,stripe_unit=4194304,stripe_count=16"

  Maximum Block Size = 4194304
  Minimum Block Size = 2097152

  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  Maximum Concurrent Jobs = 4
}

Messages {
  Name = Standard
  director = mydc-cc001.my.domain.zz-dir = all
  syslog = all, !skipped
}

Reply via email to