Dear all,
I can’t get my Catalog backup job to work properly. The documentation seems to
be written before the Perl script for making the sql db copy was introduced
(it refers to a shell script).
When I run the job’s RunScript commands in a shell they actually work, so the
file /opt/bacula/working/bacula.sql is created and deleted.
I guess I misunderstand how those runscripts work?
I don’t see where my mistake is (but I am sure I made one).
The log does not really show whether the RunScript directives were executed:
bacula-dir JobId 31: End auto prune.
bacula-dir JobId 31: No Files found to prune.
bacula-dir JobId 31: Begin pruning Files.
bacula-dir JobId 31: No Jobs found to prune.
bacula-dir JobId 31: Begin pruning Jobs older than 6 months .
bacula-dir JobId 31: Bacula bacula-dir 11.0.5 (03Jun21):
Build OS: x86_64-pc-linux-gnu debian 11.1
JobId: 31
Job:
CatalogBackup
.2022-03-16_21.50.59_11
Backup Level: Full
Client: "
bacula-fd
" 11.0.5 (03Jun21) x86_64-pc-linux-gnu,debian,11.1
FileSet: "
Catalog
" 2022-03-08 22:48:58
Pool: "
unraid-catalog-full
" (From Command input)
Catalog: "MyCatalog" (From Pool resource)
Storage: "
unraid-tier1-storage
" (From Pool resource)
Scheduled time: 16-Mar-2022 21:50:59
Start time: 16-Mar-2022 21:51:01
End time: 16-Mar-2022 21:51:02
Elapsed time: 1 sec
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
Comm Line Compression: None
Snapshot/VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 1
Volume Session Time: 1647463790
Last Volume Bytes: 705 (705 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK -- with warnings
bacula-sd JobId 31: Sending spooled attrs to the Director. Despooling 0 bytes
...
bacula-sd JobId 31: Elapsed time=00:00:01, Transfer rate=0 Bytes/second
Here is the problem:
bacula-fd JobId 31: Could not stat "/opt/bacula/working/bacula.sql":
ERR=No such file or directory
bacula-dir JobId 31: Max Volume jobs=1 exceeded. Marking Volume
"unraid-catalog-full-vol-0042" as Used.
bacula-sd JobId 31: Wrote label to prelabeled Volume
"unraid-catalog-full-vol-0042" on File device "Tier1-FileChgr1-Dev1"
(/mnt/tier1-01)
bacula-sd JobId 31: Labeled new Volume "unraid-catalog-full-vol-0042" on File
device "Tier1-FileChgr1-Dev1" (/mnt/tier1-01).
bacula-dir JobId 31: Using Device "Tier1-FileChgr1-Dev1" to write.
bacula-dir JobId 31: Created new Volume="unraid-catalog-full-vol-0042",
Pool="unraid-catalog-full", MediaType="tier1-int-user0-folder1-file" in catalog.
bacula-dir JobId 31: Start Backup JobId 31,
Job=CatalogBackup.2022-03-16_21.50.59_11
Job {
Name = "CatalogBackup"
Description = "Backup MyCatalog"
Type = "Backup"
Level = "Full"
Messages = "Standard"
Storage = "unraid-tier1-storage"
Pool = "unraid-catalog-full"
Fileset = "Catalog"
Schedule = "EveryNight"
JobDefs = "DefaultJob"
Runscript {
RunsWhen = "Before"
RunsOnSuccess = no
RunsOnClient = no
Command = "/opt/bacula/scripts/make_catalog_backup.pl MyCatalog"
}
Runscript {
RunsWhen = "After"
FailJobOnError = no
RunsOnSuccess = no
RunsOnClient = no
Command = "/opt/bacula/scripts/delete_catalog_backup"
}
Runscript {
RunsWhen = "After"
FailJobOnError = no
RunsOnSuccess = no
RunsOnClient = no
Console = "purge volume action=all allpools storage=unraid-tier1-storage"
}
Priority = 11
AllowIncompleteJobs = no
AllowDuplicateJobs = no
}
Schedule {
Name = "EveryNight"
Run = Level="Full" at 20:00
}
Fileset {
Name = "Catalog"
Include {
File = "/opt/bacula/working/bacula.sql"
Options {
Signature = "Md5"
}
}
}
Thanks for any help.
JC
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users