Am 25.06.24 um 12:59 schrieb Stefan G. Weichinger:

my director conf is 863 lines long, I assume I should pick out the relevant parts. Will try to.

ok, showing config

I removed Jobs and Filesets for other VMs and Samba-Shares, that are just edited copies of the shown ressources (I assume) to not flood you with too much information ...

the storages, pools, jobs etc are there

Basically I backup 2 types of directories:

* samba shares "Samba-xxx"
* Veeam-backup-dirs "VMxxx"

The VM-dirs are quite big in relation to the LTO-6 drives. So I would like to only backup the Veeam-incrementals (*.vib) on a daily basis and all the FULLs (*.vbk) only weekly or so

maybe that would be easier without two pools, just by using incremental and differential jobs?

->

pls go on and let me know what to improve and learn, *thanks* !


# cat bacula-sd.conf
Director {
  Name = "samba-dir"
  Password = "EkcGgtnIijvclGBT6fTwbT44bk5n-jKp8"
}
Director {
  Name = "samba-mon"
  Password = "grHDvYVIl7vMJCap91vxL6YtE6tqTWAaG"
  Monitor = yes
}
Storage {
  Name = "samba-sd"
  WorkingDirectory = "/opt/bacula/working"
  PidDirectory = "/opt/bacula/working"
  PluginDirectory = "/opt/bacula/plugins"
  MaximumConcurrentJobs = 20
}
Device {
  Name = "FileStorage"
  MediaType = "File"
  ArchiveDevice = "/mnt/backup/bacula"
  RemovableMedia = no
  RandomAccess = yes
  AutomaticMount = yes
  LabelMedia = yes
  AlwaysOpen = no
  SpoolDirectory = "/mnt/amhold/bacula"
  MaximumSpoolSize = 80000000000
}
Device {
  Name = "HP-Ultrium"
  MediaType = "LTO-6"
  ArchiveDevice = "/dev/nst0"
  RemovableMedia = yes
  RandomAccess = no
  LabelMedia = yes
  AlwaysOpen = yes
  Autochanger = yes
  MaximumBlockSize = 262144
  MaximumFileSize = 8589934592
  SpoolDirectory = "/mnt/amhold/bacula"
  MaximumSpoolSize = 1000000000000
}
Messages {
  Name = "Standard"
  Director = samba-dir = All, !Mount
}
Autochanger {
  Name = "HP-Autoloader"
  Description = "HP 1x8 G2 AUTOLDR"
  Device = "HP-Ultrium"
  ChangerDevice = "/dev/sg8"
  ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
}

# cat bacula-fd.conf

Director {
  Name = samba-dir
  Password = "_iPxyMjXHv4sZ-5lrhCurMx8xx5JPpWYR"
}

Director {
  Name = samba-mon
  Password = "Q-bLbGVRNbzVYYL317KsXn1uasZNbkTCk"
  Monitor = yes
}

FileDaemon {                          # this is me
  Name = samba-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /opt/bacula/working
  Pid Directory = /opt/bacula/working
  Maximum Concurrent Jobs = 20
  Plugin Directory = /opt/bacula/plugins
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = samba-dir = all, !skipped, !restored, !verified, !saved
}


# cat bacula-dir.conf

Director {
  Name = "samba-dir"
  Messages = "Daemon"
  QueryFile = "/opt/bacula/scripts/query.sql"
  WorkingDirectory = "/opt/bacula/working"
  PidDirectory = "/opt/bacula/working"
  MaximumConcurrentJobs = 20
  Password = "kIvNH99gymnS8oxBp1f0DigA8JLmXkSWp"
}
Client {
  Name = "samba-fd"
  Address = "samba"
  FdPort = 9102
  Password = "_iPxyMjXHv4sZ-5lrhCurMx8xx5JPpWYR"
  Catalog = "MyCatalog"
  FileRetention = 5184000
  JobRetention = 15552000
  AutoPrune = yes
}
Job {
  Name = "BackupCatalog"
  Level = "Full"
  Storage = "HP-Autoloader"
  Pool = "Daily"
  Fileset = "Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  JobDefs = "DefaultJob"
  WriteBootstrap = "/opt/bacula/working/%n.bsr"
  Runscript {
    RunsWhen = "Before"
    RunsOnClient = no
    Command = "/opt/bacula/scripts/make_catalog_backup.pl MyCatalog"
  }
  Runscript {
    RunsWhen = "After"
    RunsOnClient = no
    Command = "/opt/bacula/scripts/delete_catalog_backup"
  }
  Priority = 11
}
Job {
  Name = "BackupClient1"
  JobDefs = "DefaultJob"
}
Job {
  Name = "RestoreFiles"
  Type = "Restore"
  Messages = "Standard"
  Storage = "HP-Autoloader"
  Pool = "Daily"
  Client = "samba-fd"
  Fileset = "Full Set"
  Where = "/opt/bacula/archive/bacula-restores"
}

Job {
  Name = "Samba-Devices"
  Type = "Backup"
  Fileset = "Samba_Devices"
  JobDefs = "DefaultJob"
}
Job {
  Name = "Samba-IT"
  Type = "Backup"
  Fileset = "Samba_Share_IT"
  JobDefs = "DefaultJob"
}
Job {
  Name = "VM-NOSV-DC01"
  Type = "Backup"
  Fileset = "VM_NOSV-DC01"
  JobDefs = "VeeamJob"
}
Job {
  Name = "VM-Print01"
  Type = "Backup"
  Fileset = "VM_Print01"
  JobDefs = "VeeamJob"
}
Job {
  Name = "VM_DC"
  Type = "Backup"
  Level = "Incremental"
  Storage = "HP-Autoloader"
  Pool = "Daily"
  Client = "samba-fd"
  Fileset = "VM DC2"
  JobDefs = "VeeamJob"
}
Job {
  Name = "VM_ERP"
  Type = "Backup"
  Pool = "Monthly"
  Client = "samba-fd"
  Fileset = "VM_ERP"
  JobDefs = "VeeamJob"
  Enabled = no
}
Job {
  Name = "VM_ERP_vbk"
  Type = "Backup"
  Pool = "Weekly"
  Client = "samba-fd"
  Fileset = "VM_ERP_vbk"
  Schedule = "WeeklyCycle"
  JobDefs = "VeeamJob"
}
Job {
  Name = "VM_ERP_vib"
  Type = "Backup"
  Pool = "Daily"
  Client = "samba-fd"
  Fileset = "VM_ERP_vib"
  JobDefs = "VeeamJob"
}
Job {
  Name = "VM_Exchange"
  Type = "Backup"
  Fileset = "VM_Exchange"
  JobDefs = "VeeamJob"
}
Job {
  Name = "migrate-to-tape"
  Type = "Migrate"
  Storage = "File"
  Pool = "File"
  NextPool = "Daily"
  JobDefs = "DefaultJob"
  PurgeMigrationJob = no
  Enabled = no
  MaximumSpawnedJobs = 20
  SelectionPattern = "."
  SelectionType = "Volume"
}
Storage {
  Name = "File"
  SdPort = 9103
  Address = "samba"
  Password = "EkcGgtnIijvclGBT6fTwbT44bk5n-jKp8"
  Device = "FileStorage"
  MediaType = "File"
}
Storage {
  Name = "HP-Autoloader"
  SdPort = 9103
  Address = "samba"
  Password = "EkcGgtnIijvclGBT6fTwbT44bk5n-jKp8"
  Device = "HP-Autoloader"
  MediaType = "LTO-6"
  Autochanger = "HP-Autoloader"
  MaximumConcurrentJobs = 1
}
Catalog {
  Name = "MyCatalog"
  Password = "B3-Dk7EhN"
  User = "bacula"
  DbName = "bacula"
}
Schedule {
  Name = "NightlySave"
  Run = Pool="Monthly" Level="Full" Storage="HP-Autoloader" 1st sat at 8:17
Run = Pool="Weekly" Level="Full" Storage="HP-Autoloader" 2nd,3rd,4th,5th sat at 0:01 Run = Pool="Daily" Level="Incremental" Storage="HP-Autoloader" mon,tue,wed,thu at 19:50
}
Schedule {
  Name = "WeeklyCycle"
  Run = Level="Full" 1st sun at 23:05
  Run = Level="Differential" 2nd,3rd,4th,5th sun at 23:05
  Run = Level="Incremental" mon,tue,wed,thu,fri,sat at 23:05
}
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Level="Full" at 23:10
}
Fileset {
  Name = "Catalog"
  Include {
    File = "/opt/bacula/working/bacula.sql"
    Options {
      Signature = "Sha1"
    }
  }
}
Fileset {
  Name = "Full Set"
  Include {
    File = "/opt/bacula/bin"
    File = "/opt/bacula/etc"
    File = "/etc"
    File = "/var/lib/amanda"
    File = "/mnt/backup/vmbackup/VeeamConfigBackup"
    Options {
      Compression = "zstd"
      Signature = "Sha1"
    }
  }
  Exclude {
    File = "/opt/bacula/working"
    File = "/opt/bacula/archive"
    File = "/proc"
    File = "/tmp"
    File = "/sys"
    File = "/.journal"
    File = "/.fsck"
  }
}
Fileset {
  Name = "Samba_Devices"
  Description = "Samba Devices"
  Include {
    File = "/mnt/MSA2040/smb/Devices"
    Options {
      Compression = "zstd"
      Signature = "Sha1"
    }
  }
}
Fileset {
  Name = "Samba_Share_IT"
  Description = "Samba IT"
  Include {
    File = "/mnt/MSA2040/smb/IT"
    Options {
      Compression = "zstd"
      Signature = "Sha1"
    }
  }
}
Fileset {
  Name = "VM_ERP"
  Include {
    File = "/mnt/backup/vmbackup/Backup ERP"
    Options {
      Signature = "Sha1"
    }
  }
}
Fileset {
  Name = "VM_ERP_vbk"
  Include {
    File = "/mnt/backup/vmbackup/Backup ERP"
    Options {
      WildFile = "*.vbk"
    }
    Options {
      Exclude = "Yes"
      RegexFile = ".*"
    }
  }
}
Fileset {
  Name = "VM_ERP_vib"
  Include {
    File = "/mnt/backup/vmbackup/Backup ERP"
    Options {
      WildFile = "*.vib"
    }
    Options {
      Exclude = "Yes"
      RegexFile = ".*"
    }
  }
}
Pool {
  Name = "Daily"
  Description = "daily backups"
  PoolType = "Backup"
  MaximumVolumes = 30
  VolumeRetention = 864000
  Storage = "HP-Autoloader"
}
Pool {
  Name = "Default"
  PoolType = "Backup"
  MaximumVolumes = 100
  MaximumVolumeBytes = 53687091200
  VolumeRetention = 31536000
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "File"
  PoolType = "Backup"
  LabelFormat = "Vol-"
  MaximumVolumes = 101
  MaximumVolumeBytes = 53687091200
  VolumeRetention = 432000
  NextPool = "Daily"
  Storage = "File"
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "Monthly"
  Description = "monthly backups"
  PoolType = "Backup"
  UseVolumeOnce = no
  Storage = "HP-Autoloader"
}
Pool {
  Name = "Scratch"
  PoolType = "Backup"
}
Pool {
  Name = "Weekly"
  Description = "weekly backups"
  PoolType = "Backup"
  UseVolumeOnce = no
  VolumeRetention = 2592000
  Storage = "HP-Autoloader"
}
Messages {
  Name = "Daemon"
MailCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula daemon message\" %r"
  Mail = l...@xunil.at = All, !Skipped
  Append = /opt/bacula/log/bacula.log = All, !Skipped
  Console = All, !Skipped
}
Messages {
  Name = "Standard"
MailCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula: %t %e of %c %l\" %r" OperatorCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula: Intervention needed for %j\" %r"
  Mail = l...@xunil.at = All, !Skipped
  Append = /opt/bacula/log/bacula.log = All, !Skipped
  Console = All, !Skipped
  Operator = root = Mount
  Catalog = All
}
Console {
  Name = "samba-mon"
  Password = "grHDvYVIl7vMJCap91vxL6YtE6tqTWAaG"
  CommandAcl = "status"
  CommandAcl = ".status"
}
Console {
  Name = "tape-operator-ACL"
  Password = "frump12"
  StorageAcl = "HP-Autoloader"
  CommandAcl = ".api"
  CommandAcl = "gui"
  CommandAcl = ".status"
  CommandAcl = ".storage"
  CommandAcl = "delete"
  CommandAcl = "show"
  CommandAcl = "mount"
  CommandAcl = "umount"
  CommandAcl = "label"
  CommandAcl = "update"
}
JobDefs {
  Name = "DefaultJob"
  Type = "Backup"
  Level = "Incremental"
  Messages = "Standard"
  Storage = "HP-Autoloader"
  Pool = "File"
  Client = "samba-fd"
  Fileset = "Full Set"
  Schedule = "NightlySave"
  WriteBootstrap = "/opt/bacula/working/%c.bsr"
  MaximumBandwidth = 140000000
  SpoolAttributes = yes
  SpoolData = yes
  Priority = 10
}
JobDefs {
  Name = "VeeamJob"
  Type = "Backup"
  Level = "Incremental"
  Messages = "Standard"
  Storage = "HP-Autoloader"
  Pool = "Daily"
  Client = "samba-fd"
  Fileset = "Full Set"
  Schedule = "NightlySave"
  WriteBootstrap = "/opt/bacula/working/%c.bsr"
  Enabled = yes
  SpoolData = no
  Priority = 10
}



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to