Good morning,
I’m driving slightly crazy with this config. I’m planning to automate a server which makes a VirtualFull+Incremental once a week and the rest of the week just does incremental backups. For this purpose I have :
(I’m trying to be pasted here just the relevant configurations for avoiding noise)
1.- One machine with bacula-sd service configured as :
Storage { # definition of myself SDPort = 9103 # Director's port WorkingDirectory = "/expert/baculadata" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 TLS Enable = Yes TLS Require = Yes TLS Verify Peer = Yes TLS CA Certificate File = "/usr/local/etc/bacula/cacert.pem" }
# # List Directors who are permitted to contact Storage daemon # Director { Password = "prue44bas" TLS Enable = Yes TLS Require = Yes TLS Verify Peer = Yes TLS CA Certificate File = "/usr/local/etc/bacula/cacert.pem" }
# # Restricted Director, used by tray-monitor to get the # status of the storage daemon # Director { Password = "prue55bas" Monitor = yes }
# # Devices supported by this Storage daemon # To connect, the Director's bacula2-dir.conf must have the # same Name and MediaType. #
Device { Name = FileStorage-sare0001 Media Type = File Archive Device = /expert/Libreria_incrementales_sare0001 LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; }
Device { Name = FileStorageRestore-sare0001 Media Type = File Archive Device = /expert/Libreria_restore_sare0001 LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; }
Device { Name = FileStorageFullV-sare0001 Media Type = File Archive Device = /expert/Libreria_VFull_sare0001 LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; }
2.- A database server which seems it’s not having any kind of issue.
3.- A bacula-dir server…
Where have configured as pools :
Pool { Name = catalogo_sare0001_virtualfull Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Storage = FileStorageFullV-sare0001 AutoPrune = yes # Prune expired volumes Volume Retention = 21 days Recycle Current Volume = yes Next Pool = catalogo_sare0001_incrementales }
Pool { Name = catalogo_sare0001_incrementales Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Storage = File-sare0001 AutoPrune = yes # Prune expired volumes Volume Retention = 21 days Recycle Current Volume = yes Next Pool = catalogo_sare0001_virtualfull }
As the job file :
#Inicio protobac-cli-fd ##################################### # # Cliente: protobac-cli-fd # ##################################################### Client { Name = protobac-cli-fd FDPort = 9102 Catalog = catalogo_sare0001 Password = "clave_1234" File Retention = 62 days Job Retention = 6 months AutoPrune = yes Maximum Concurrent Jobs = 10 TLS Enable = Yes TLS Require = Yes TLS CA Certificate File = "/usr/local/etc/bacula/cacert.pem" }
JobDefs { Name = "protobac-cli-fd_defs" Client = protobac-cli-fd FileSet = "protobac-cli-fd_fileset" Schedule = "SEMANAL_MARTES_1421" Messages = Standard # Accurate = yes Priority = 10 }
Job { Name = "protobac-cli-fd-VirtualFULL" Level = VirtualFull Type = Backup Pool = catalogo_sare0001_incrementales JobDefs = "protobac-cli-fd_defs" Write Bootstrap = "/expert/baculadata/Bootstrap/protobac-cli-fd.bsr" #RunAfterJob = "/expert/scripts/lanza_migrate_de_vfull_sare0001.sh" }
Job { Name = "protobac-cli-fd-Incremental" Level = Incremental Type = Backup Pool = catalogo_sare0001_incrementales Storage = File-sare0001 JobDefs = "protobac-cli-fd_defs" Write Bootstrap = "/expert/baculadata/Bootstrap/protobac-cli-fd.bsr" }
Job { Name = "protobac-cli-fd_RestoreFiles" Client = protobac-cli-fd Type = Restore Schedule = NEVER FileSet = "protobac-cli-fd_fileset" Storage = FileRestore-sare0001 Pool = catalogo_sare0001_incrementales Messages = Standard Where = /export/home/bacula/bacula-restores }
Job { Name = "protobac-cli-fd_MigrateFULLVIRTUAL" Client = protobac-cli-fd Schedule = NEVER Type = Migrate Level = Full FileSet = "protobac-cli-fd_fileset" Messages = Standard Pool = catalogo_sare0001_virtualfull Selection Type = Client Selection Pattern = protobac-cli-fd }
FileSet { Name = "protobac-cli-fd_fileset" Include { Options { signature = MD5 compression=gzip } File = "</expert/baculadata/Fileset/protobac-cli-fd_fileset.txt" } Exclude { File = "</expert/baculadata/Fileset/protobac-cli-fd_exclude.txt" } }
When I launch a real full job and several incrementals… I do try to run :
*run job="protobac-cli-fd-VirtualFULL" Using Catalog "catalogo_sare0001" Run Backup job JobName: protobac-cli-fd-VirtualFULL Level: VirtualFull Client: protobac-cli-fd FileSet: protobac-cli-fd_fileset Pool: catalogo_sare0001_incrementales (From Job resource) Storage: FileStorageFullV-sare0001 (From Storage from Pool's NextPool resource) When: 2014-08-20 15:16:13 Priority: 10 OK to run? (yes/mod/no): yes Job queued. JobId=196 *messages 20-Aug 15:16 protobac-dir.sare.net-dir JobId 196: Start Virtual Backup JobId 196, Job=protobac-cli-fd-VirtualFULL.2014-08-20_15.16.16_03 20-Aug 15:16 protobac-dir.sare.net-dir JobId 196: Warning: This Job is not an Accurate backup so is not equivalent to a Full backup. 20-Aug 15:16 protobac-sd-master.sare.net-s JobId 196: Warning: acquire.c:239 Read open device "FileStorage-sare0001" (/expert/Libreria_incrementales_sare0001) Volume "CintaBackup-VFULL-1" failed: ERR=dev.c:575 Could not open: /expert/Libreria_incrementales_sare0001/CintaBackup-VFULL-1, ERR=No such file or directory
Job: protobac-cli-fd-VirtualFULL.2014-08-20_15.16.16_03 Storage: "FileStorage-sare0001" (/expert/Libreria_incrementales_sare0001) Pool: catalogo_sare0001_incrementales Media type: File
And obtain that error… If I for example change the pool or the storage… it then sais it’s not able to find the file from the incremental backups job in the virtual full pool… this is pretty crazy… because have done several attempts but have not been able to make this work. Although should say perhaps twice or similar has worked. Is this a bug in this bacula version?.
Should say non virtual backups work just fine.
Best regards,
|