Storage { Name = FileStorage SDAddress = localhost SDPort = 9103 Password = "password" Device = FileStorageDevice Media Type = File }
File { Name = BackupDir Path = /path/to/backup/dir/ Allowed File Types = .tgz }
User = bacula Group = bacula
DirOwner = bacula DirGroup = bacula DirMode = 0750
FileOwner = bacula FileGroup = bacula FileMode = 0600
Client { Name = myclient-fd Address = myclient.example.com FDPort = 9102 Catalog = MyCatalog Password = "password" File Retention = 30 days Job Retention = 6 months }
#!/bin/sh
TYPE=Full
DEST=/path/to/backup/dir/
SRC=/path/to/src/
/usr/bin/bacula-backup $TYPE $DEST $SRC
通过检查这些配置和脚本,您应该能够解决Bacula备份失败的问题。