Hello,
Can anyone help me with a restore problem please. I'm still trying to setup bacula for the first time. Backups seem to go ok but when I run a restore all for any client, the files restored /never/ matches the files backed up. Here's some output: *from backup* 10-Aug 10:01 dreadnought-dir: Start Backup JobId 35, Job=conqueror-backup-job.2005-08-10_10.01.43 10-Aug 10:01 dreadnought-sd: Spooling data ... 10-Aug 10:08 dreadnought-sd: Committing spooled data to Volume. Despooling 864,983,271 bytes ... 10-Aug 10:09 dreadnought-sd: Sending spooled attrs to the Director. Despooling 75,982,951 bytes ... 10-Aug 10:12 dreadnought-dir: Bacula 1.36.3 (22Apr05): 10-Aug-2005 10:12:21 JobId: 35 Job: conqueror-backup-job.2005-08-10_10.01.43 Backup Level: Full Client: conqueror-fd FileSet: "ConquerorFileSet" 2005-08-10 09:58:36 Pool: "dreadnought-weekly" Storage: "tapechanger" Start time: 10-Aug-2005 10:01:45 End time: 10-Aug-2005 10:12:21 FD Files Written: 249,522 SD Files Written: 249,522 FD Bytes Written: 822,086,825 SD Bytes Written: 855,295,499 Rate: 1292.6 KB/s Software Compression: 69.8 % Volume name(s): dreadnought-weekly0001 Volume Session Id: 9 Volume Session Time: 1123609564 Last Volume Bytes: 15,075,069,535 Non-fatal FD errors: 0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination: Backup OK 10-Aug 10:12 dreadnought-dir: Begin pruning Jobs. 10-Aug 10:12 dreadnought-dir: No Jobs found to prune. 10-Aug 10:12 dreadnought-dir: Begin pruning Files. 10-Aug 10:12 dreadnought-dir: No Files found to prune. 10-Aug 10:12 dreadnought-dir: End auto prune. *from restore* 10-Aug 11:10 dreadnought-sd: End of Volume at file 19 on device /dev/st0, Volume "dreadnought-weekly0001" 10-Aug 11:10 dreadnought-sd: End of all volumes. 10-Aug 11:10 dreadnought-dir: Bacula 1.36.3 (22Apr05): 10-Aug-2005 11:10:53 JobId: 37 Job: conqueror-restore-job.2005-08-10_10.54.47 Client: conqueror-fd Start time: 10-Aug-2005 10:54:49 End time: 10-Aug-2005 11:10:53 Files Expected: 249,522 Files Restored: 224,468 Bytes Restored: 2,720,647,867 Rate: 2822.2 KB/s FD Errors: 0 FD termination status: OK SD termination status: OK Termination: Restore OK -- warning file count mismatch 10-Aug 11:10 dreadnought-dir: Begin pruning Jobs. 10-Aug 11:10 dreadnought-dir: No Jobs found to prune. 10-Aug 11:10 dreadnought-dir: Begin pruning Files. 10-Aug 11:10 dreadnought-dir: No Files found to prune. 10-Aug 11:10 dreadnought-dir: End auto prune. I've attached my config files in case they can help diagnose the error. Sorry if I'm being stupid, am just at my wits end now after trying many things to solve it. Thanks in advance, johnny -- John Huss Tel: +44 (1304) 814800 The Bunker Fax: +44 (1304) 814899 Ash Radar Station http://www.thebunker.net Marshborough Road mailto:[EMAIL PROTECTED] Sandwich Kent CT13 0PL UNITED KINGDOM
### Directors (This is what talks to other daemons and hosts) Director { Name = dreadnought-dir Description = "Main Dreadnought Backup Director" DIRport = 9101 # where we listen for UA connections QueryFile = "/var/lib/bacula/query.sql" WorkingDirectory = "/var/bacula" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "CwfOe12bPg+8JXxJdFLnThUumguqecQyA9qk8hzbGnKv" # Console password Messages = Standard } ### Job Definitions (options, inherited by Jobs) JobDefs { Name = "DefaultBackupJobDefs" Type = Backup Level = Incremental Client = dreadnought-fd Schedule = "WeeklyCycle" Storage = tapechanger Messages = Standard Pool = "dreadnought-daily" Full Backup Pool = "dreadnought-weekly" Incremental Backup Pool = "dreadnought-daily" Spool Data = yes Priority = 10 } JobDefs { Name ="DefaultRestoreJobDefs" Type = Restore #Where = "/store/bacula/restore" Prefix Links = no Priority = 10 Replace = never Messages = Standard Storage = tapechanger Pool = "dreadnought-daily" Full Backup Pool = "dreadnought-weekly" Incremental Backup Pool = "dreadnought-daily" } JobDefs { Name ="DefaultVerifyJobDefs" Type = Verify Where = "/store/bacula/restore" Priority = 10 Level = VolumeToCatalog Messages = Standard Storage = tapechanger Pool = "dreadnought-daily" Full Backup Pool = "dreadnought-weekly" Incremental Backup Pool = "dreadnought-daily" } ### Job Definitions # Backup the catalog database (after the nightly save) Job { Name = "BackupCatalog" JobDefs = "DefaultBackupJobDefs" Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog # RunBeforeJob = "/etc/bacula/make_catalog_backup -u bacula" RunBeforeJob = "/var/lib/bacula/make_catalog_backup bacula bacula" # This deletes the copy of the catalog #RunAfterJob = "/etc/bacula/delete_catalog_backup" RunAfterJob = "/var/lib/bacula/delete_catalog_backup" Write Bootstrap = "/var/bacula/BackupCatalog.bsr" Priority = 11 # run after main backup Storage = tapechanger Pool = "dreadnought-daily" Full Backup Pool = "dreadnought-weekly" Incremental Backup Pool = "dreadnought-daily" } ### backup jobs Job { Name = "dreadnought-backup-job" JobDefs = "DefaultBackupJobDefs" Client = "dreadnought-fd" FileSet = "DreadnoughtFileSet" Schedule = "WeeklyCycle" Write Bootstrap = "/var/bacula/dreadnought.bsr" Client Run Before Job = "mount /dev/sda1 /boot" Client Run After Job = "umount /boot" } Job { Name = "conqueror-backup-job" JobDefs = "DefaultBackupJobDefs" Client = "conqueror-fd" FileSet = "ConquerorFileSet" Schedule = "WeeklyCycle" Write Bootstrap = "/var/bacula/conqueror.bsr" Client Run Before Job = "mount /dev/md0 /boot" Client Run After Job = "umount /boot" } Job { Name = "colossus-backup-job" JobDefs = "DefaultBackupJobDefs" Client = "conqueror-fd" FileSet = "ColossusFileSet" Schedule = "WeeklyCycle" Write Bootstrap = "/var/bacula/colossus.bsr" Client Run Before Job = "mount /dev/sda1 /boot" Client Run After Job = "umount /boot" } Job { Name = "agamemnon-backup-job" JobDefs = "DefaultBackupJobDefs" Client = "agamemnon-fd" FileSet = "AgamemnonFileSet" Schedule = "WeeklyCycle" Write Bootstrap = "/var/bacula/agamemnon.bsr" Client Run Before Job = "mount /dev/md0 /boot" Client Run After Job = "umount /boot" } Job { Name = "neptune-backup-job" JobDefs = "DefaultBackupJobDefs" Client = "neptune-fd" FileSet = "NeptuneFileSet" Schedule = "WeeklyCycle" Write Bootstrap = "/var/bacula/neptune.bsr" } ### restore jobs Job { Name = "dreadnought-restore-job" JobDefs = "DefaultRestoreJobDefs" Client = "dreadnought-fd" FileSet = "DreadnoughtFileSet" Bootstrap = "/var/bacula/dreadnought.bsr" Where = "/store/bacula/restore" } Job { Name = "conqueror-restore-job" JobDefs = "DefaultRestoreJobDefs" Client = "conqueror-fd" FileSet = "ConquerorFileSet" Bootstrap = "/var/bacula/conqueror.bsr" Where = "/tmp/bacula-restore" } Job { Name = "colossus-restore-job" JobDefs = "DefaultRestoreJobDefs" Client = "colossus-fd" FileSet = "ColossusFileSet" Bootstrap = "/var/bacula/colossus.bsr" Where = "/tmp/bacula-restore" } Job { Name = "neptune-restore-job" JobDefs = "DefaultRestoreJobDefs" Client = "neptune-fd" FileSet = "NeptuneFileSet" Bootstrap = "/var/bacula/neptune.bsr" Where = "/tmp/bacula-restore" } Job { Name = "agamemnon-restore-job" JobDefs = "DefaultRestoreJobDefs" Client = "agamemnon-fd" FileSet = "AgamemnonFileSet" Bootstrap = "/var/bacula/agamemnon.bsr" Where = "/tmp/bacula-restore" } ### verify jobs Job { Name = "dreadnought-verify-job" JobDefs = "DefaultVerifyJobDefs" VerifyJob = "dreadnought-backup-job" Client = "dreadnought-fd" FileSet = "DreadnoughtFileSet" } Job { Name = "conqueror-verify-job" JobDefs = "DefaultVerifyJobDefs" VerifyJob = "conqueror-backup-job" Client = "conqueror-fd" FileSet = "ConquerorFileSet" } Job { Name = "colossus-verify-job" JobDefs = "DefaultVerifyJobDefs" VerifyJob = "colossus-backup-job" Client = "colossus-fd" FileSet = "ColossusFileSet" } Job { Name = "neptune-verify-job" JobDefs = "DefaultVerifyJobDefs" VerifyJob = "neptune-backup-job" Client = "neptune-fd" FileSet = "NeptuneFileSet" } Job { Name = "agamemnon-verify-job" JobDefs = "DefaultVerifyJobDefs" VerifyJob = "agamemnon-backup-job" Client = "agamemnon-fd" FileSet = "AgamemnonFileSet" } # 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 = "WeeklyCycle" Run = Full FullPool=dreadnought-weekly sun at 02:00 Run = Incremental IncrementalPool=dreadnought-daily mon-sat at 02:00 } # This schedule does the catalog. It starts after the WeeklyCycle # Dunno what pools to define for this because it runs every day! needs work Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 02:30 } # This is the backup of the catalog FileSet { Name = "Catalog" Include { Options { signature=MD5 compression=GZIP # new added by johnny } File = /var/lib/bacula/bacula.sql } } FileSet { Name = "ConquerorFileSet" # stuff to backup and options for that data Include { Options { signature = MD5 compression = GZIP verify = 5 } File = / File = /boot } # stuff NOT to backup Exclude { File = /dev File = /proc File = /tmp File = /var/run File = /var/tmp } } FileSet { Name = "AgamemnonFileSet" # stuff to backup and options for that data Include { Options { signature = MD5 compression = GZIP verify = 5 } File = / File = /boot } # stuff NOT to backup Exclude { File = /dev File = /proc File = /tmp File = /var/run File = /var/tmp } } FileSet { Name = "ColossusFileSet" # stuff to backup and options for that data Include { Options { signature = MD5 compression = GZIP verify = 5 } File = / File = /boot File = /store } # stuff NOT to backup Exclude { File = /dev File = /proc File = /store/mysql/colossus-bin.* File = /store/mysql/colossus-relay-bin.* File = /store/mysql/ib_logfile* File = /store/mysql/ibdata1 File = /store/mysql/mysql File = /store/mysql/tradeideasmonitor File = /tmp File = /var/run File = /var/tmp } } FileSet { Name = "NeptuneFileSet" # stuff to backup and options for that data Include { Options { signature = MD5 compression = GZIP verify = 5 } File = / } # stuff NOT to backup Exclude { File = /compat File = /dev File = /proc File = /sys File = /tmp File = /usr/local/apache/gcache File = /var/db/mysql/cacti File = /var/db/mysql/ibdata1 File = /var/db/mysql/ib_logfile* File = /var/db/mysql/mysql File = /var/db/mysql/nagios File = /var/db/mysql/neptune-bin.* File = /var/db/mysql/neptune.hosted-at.thebunker.net* File = /var/db/mysql/snort File = /var/db/mysql/snort-archive File = /var/db/mysql/test File = /var/empty File = /var/named/var/run File = /var/run File = /var/tmp } } FileSet { Name = "DreadnoughtFileSet" # stuff to backup and options for that data Include { Options { signature = MD5 compression = GZIP verify = 5 } File = / File = /boot File = /store } # stuff NOT to backup Exclude { File = /dev File = /proc File = /store/bacula/spool File = /store/bacula/restore File = /store/mysql/bacula File = /store/mysql/dreadnought-bin.* File = /store/mysql/dreadnought-relay-bin.* File = /store/mysql/ib_logfile* File = /store/mysql/ibdata1 File = /store/mysql/mysql File = /store/mysql/test File = /store/mysql/tradeideasmonitor File = /tmp File = /var/empty File = /var/lib/mysql File = /var/tmp } } ### Client definitions (the file daemons that the director talks to!) Client { Name = dreadnought-fd Address = dreadnought.hosted-at.thebunker.net FDPort = 9102 Catalog = MyCatalog Password = "xLzT0Qml1XzVh4AVZeKdbLOYUSjdbyuseZ3928d9Z/qv" # pword 4 FileDemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } Client { Name = conqueror-fd Address = conqueror-back.hosted-at.thebunker.net FDPort = 9102 Catalog = MyCatalog Password = "xLzT0Qml1XzVh4AVZeKdbLOYUSjdbyuseZ3928d9Z/qv" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } Client { Name = colossus-fd Address = colossus.hosted-at.thebunker.net FDPort = 9102 Catalog = MyCatalog Password = "xLzT0Qml1XzVh4AVZeKdbLOYUSjdbyuseZ3928d9Z/qv" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } Client { Name = agamemnon-fd Address = agamemnon-back.hosted-at.thebunker.net FDPort = 9102 Catalog = MyCatalog Password = "xLzT0Qml1XzVh4AVZeKdbLOYUSjdbyuseZ3928d9Z/qv" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } Client { Name = neptune-fd Address = neptune-back.hosted-at.thebunker.net FDPort = 9102 Catalog = MyCatalog Password = "xLzT0Qml1XzVh4AVZeKdbLOYUSjdbyuseZ3928d9Z/qv" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } # Definiton of storage device Storage { Name = tapechanger Address = dreadnought.hosted-at.thebunker.net SDPort = 9103 Password = "huPkH+QYFa5IDozT3nfSTkBCeUnvpNb2aZmxwVwhNSxZ" Device = tapechanger Media Type = LT02 Autochanger = yes } # Generic catalog service Catalog { Name = MyCatalog dbname = bacula; user = bacula; password = "" } # Reasonable message delivery -- send to email address and to console Messages { Name = Standard mailcommand = "/usr/sbin/bsmtp -h neptune-back.hosted-at.thebunker.net -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/sbin/bsmtp -h neptune-back.hosted-at.thebunker.net -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r" mail = [EMAIL PROTECTED] = all, !skipped operator = [EMAIL PROTECTED] = mount console = all, !skipped, !saved # WARNING! the following will create a file that you must cycle from # time to time as it will grow indefinitely append = "/var/bacula/log" = all, !skipped } # Default pool definition Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Accept Any Volume = yes # write on any volume in the pool } Pool { Name = dreadnought-daily Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Accept Any Volume = yes # write on any volume in the pool Labelformat = dreadnought-daily } Pool { Name = dreadnought-weekly Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Accept Any Volume = yes # write on any volume in the pool Labelformat = dreadnought-weekly }
# # Default Bacula File Daemon Configuration file # # For Bacula release 1.34.4 (12 June 2004) -- gentoo 1.4.16 # # There is not much to change here except perhaps the # File daemon Name to # # # List Directors who are permitted to contact this File daemon # Director { Name = dreadnought-dir Password = "xLzT0Qml1XzVh4AVZeKdbLOYUSjdbyuseZ3928d9Z/qv" } # # "Global" File daemon configuration specifications # FileDaemon { # this is me Name = dreadnought-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } # abandon all hope all ye who enter here... FileDaemon { # this is me Name = colossus-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } FileDaemon { # this is me Name = conqueror-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } FileDaemon { # this is me Name = agamemnon-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } FileDaemon { # this is me Name = neptune-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } # Send all messages except skipped files back to Director Messages { Name = Standard director = dreadnought-dir = all, !skipped }
# # Default Bacula Storage Daemon Configuration file # Storage { # definition of myself Name = dreadnought-sd SDPort = 9103 # Director's port WorkingDirectory = "/var/bacula" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 } # # List Directors who are permitted to contact Storage daemon # Director { Name = dreadnought-dir Password = "huPkH+QYFa5IDozT3nfSTkBCeUnvpNb2aZmxwVwhNSxZ" } # # Devices supported by this Storage daemon # To connect, the Director's bacula-dir.conf must have the # same Name and MediaType. # Device { Name = "tapechanger" Media Type = LT02 Archive Device = /dev/st0 Changer Device = /dev/sg0 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; Autochanger = yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = yes; AlwaysOpen = yes; Removable media = yes; Spool Directory = "/store/bacula/spool"; } # Send all messages to the Director, # mount messages also are sent to the email address # Messages { Name = Standard director = dreadnought-dir = all operator = [EMAIL PROTECTED] = mount }
# # Bacula User Agent (or Console) Configuration File # Director { Name = dreadnought-dir DIRport = 9101 address = dreadnought.hosted-at.thebunker.net Password = "CwfOe12bPg+8JXxJdFLnThUumguqecQyA9qk8hzbGnKv" }