Hi all, I'm a complete newbie in Bacula. I managed to create the following setup:
One Bacula Director (Strugatsky) - bacula-dir Version: 5.0.0 (26 January 2010) x86_64-redhat-linux-gnu redhat (Centos 6.4) Two Bacula Clients (Adams,Knuth<-for restore only if needed) - 5.2.10 (28Jun12) Microsoft Standard Edition (build 9200), 64-bit,Cross-compile,Win64 bacula-win64-5.2.10.exe (Windows 2012) The idea is that I backup from Adams to Knuth. Here is my setup: Director Director { # define myself Name = bacula-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/usr/libexec/bacula/query.sql" WorkingDirectory = "/var/spool/bacula" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "PASSWORD" # Console password Messages = Daemon } JobDefs { Name = DefaultJob Type = Backup Level = Incremental Client = bacula-fd FileSet = Catalog Schedule = WeeklyCycle Storage = File Messages = Standard Pool = File Priority = 10 Write Bootstrap = "/var/spool/bacula/%c.bsr" } Job { Name = "BackupCatalog" JobDefs = "DefaultJob" Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog # Arguments to make_catalog_backup.pl are: # make_catalog_backup.pl <catalog-name> RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog" # This deletes the copy of the catalog RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup" Write Bootstrap = "/var/spool/bacula/%n.bsr" Priority = 11 # run after main backup } Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 23:05 Run = Differential 2nd-5th sun at 23:05 Run = Incremental mon-sat at 23:05 } Schedule { Name = WeeklyCycleAdams Run = Level=Full Pool=Adams-Full-Pool 1st sun at 23:05 Run = Level=Differential Pool=Adams-Diff-Pool 2nd-5th sun at 23:05 Run = Level=Incremental Pool=Adams-Inc-Pool mon-sat at 23:05 } Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 23:10 } FileSet { Name = Catalog Include { Options { signature = MD5 Compression = GZIP9 } File = /var/spool/bacula/bacula.sql } } Client { Name = bacula-fd Address = strugatsky.rockhopper.ad FDPort = 9102 Catalog = MyCatalog Password = "PASSWORD" # password for FileDaemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } Client { Name = adams-fd Address = 192.168.77.207 FDPort = 9102 Catalog = MyCatalog Password = PASSWORD File Retention = 30 days Job Retention = 6 months AutoPrune = yes } Storage { Name = File Address = strugatsky.rockhopper.ad SDPort = 9103 Password = PASSWORD Device = FileStorage Media Type = File Maximum Concurrent Jobs = 20 } Catalog { Name = MyCatalog dbname = "bacula"; dbuser = "bacula"; dbpassword = "PASSWORD" } Messages { Name = Standard mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" mail = root@localhost = all, !skipped operator = root@localhost = mount console = all, !skipped, !saved append = "/var/spool/bacula/log" = all, !skipped catalog = all } Messages { Name = Daemon mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" mail = root@localhost = all, !skipped console = all, !skipped, !saved append = "/var/log/bacula.log" = all, !skipped } Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year } Pool { Name = File Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 365 days Maximum Volume Bytes = 1G Maximum Volumes = 100 # Limit number of Volumes in Pool LabelFormat = BaculaDB } Pool { Name = Scratch Pool Type = Backup } Console { Name = bacula-mon Password = "PASSWORD" CommandACL = status, .status } FileSet { Name = Adams-Documents Include { File = c:/Documents/ File = c:/Profiles Options { OneFS = no Compression = GZIP9 } } } Job { Name = Adams-Documents Type = Backup Level = Full Client = adams-fd FileSet = Adams-Documents Schedule = WeeklyCycleAdams Storage = KnuthBackups Pool = Default Messages = Standard } Storage { Name = KnuthBackups Password = PASSWORD Address = strugatsky.rockhopper.ad SDPort = 9103 Device = KnuthBackups Media Type = KnuthBackups Maximum Concurrent Jobs = 20 } Pool { Name = DocumentsProfiles Pool Type = Backup Volume Retention = 8 days Recycle = yes AutoPrune = yes LabelFormat = DocumentsProfiles Maximum Volume Bytes = 10G Maximum Volumes = 9 } Pool { Name = Adams-Full-Pool Pool Type = Backup Volume Retention = 6 months Recycle = yes AutoPrune = yes LabelFormat = Adams-Full- Maximum Volumes = 7 Maximum Volume Jobs = 1 } Pool { Name = Adams-Diff-Pool Pool Type = Backup Volume Retention = 32 days Recycle = yes AutoPrune = yes LabelFormat = Adams-Diff- Maximum Volumes = 6 Maximum Volume Jobs = 1 } Pool { Name = Adams-Inc-Pool Pool Type = Backup Volume Retention = 5 days Recycle = yes AutoPrune = yes LabelFormat = Adams-Inc- Maximum Volumes = 3 Maximum Volume Jobs = 7 } Client { Name = knuth-fd Password = PASSWORD Address = 192.168.77.203 FDPort = 9102 Catalog = MyCatalog File Retention = 30 days Job Retention = 6 months } Storage: Storage { # definition of myself Name = bacula-sd SDPort = 9103 # Director's port WorkingDirectory = "/var/spool/bacula" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 } Director { Name = bacula-dir Password = "PASSWORD" } Device { Name = FileStorage Media Type = File Archive Device = /backup/Knuth/Backups LabelMedia = yes Random Access = yes AutomaticMount = yes RemovableMedia = no AlwaysOpen = no } Messages { Name = Standard director = bacula-dir = all } Device { Name = KnuthBackups Archive Device = /backup/Knuth/Backups Media Type = KnuthBackups LabelMedia = yes Random Access = yes AutomaticMount = yes RemovableMedia = no AlwaysOpen = no } FileDaemon: Director { Name = bacula-dir Password = "PASSWORD" } FileDaemon { # this is me Name = bacula-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/spool/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } Messages { Name = Standard director = bacula-dir = all, !skipped, !restored } And now the problem. Everything used to work as expected for 2 weeks. I had all backups working correctly including the restore procedure. Suddenly my backups stopped working requesting that new media is labeled. As you see new media should be labeled automatically and old media should be reused. Anyway I labeled a new one. Now the backup process just hangs: For ease I am using webmin for administration. Starting backup job Adams-Documents .. Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" A job name must be specified. The defined Job resources are: 1: BackupCatalog 2: Adams-Documents Select Job resource (1-2): 2 Run Backup job JobName: Adams-Documents Level: Full Client: adams-fd FileSet: Adams-Documents Pool: Default (From Job resource) Storage: KnuthBackups (From Job resource) When: 2013-11-27 13:21:12 Priority: 10 OK to run? (yes/mod/no): .. the backup job is now running. When complete, the results will be shown below .. 27-Nov 13:21 bacula-dir JobId 98: Start Backup JobId 98, Job=Adams-Documents.2013-11-27_13.21.12_26 27-Nov 13:21 bacula-dir JobId 98: Using Device "KnuthBackups" and runs forever. This is list jobs: Using Catalog "MyCatalog" +-------+-----------------+---------------------+------+-------+----------+------------+-----------+ | JobId | Name | StartTime | Type | Level | JobFiles | JobBytes | JobStatus | +-------+-----------------+---------------------+------+-------+----------+------------+-----------+ | 24 | RestoreFiles | 2013-10-29 19:24:44 | R | F | 286 | 78,393,090 | T | | 28 | BackupCatalog | 2013-10-30 06:49:31 | B | F | 1 | 18,373 | T | | 29 | RestoreFiles | 2013-10-30 06:56:09 | R | F | 1 | 121,503 | T | | 32 | BackupCatalog | 2013-10-30 23:10:02 | B | F | 1 | 26,269 | T | | 34 | BackupCatalog | 2013-10-31 23:10:02 | B | F | 1 | 27,218 | T | | 36 | BackupCatalog | 2013-11-01 23:10:03 | B | F | 1 | 27,950 | T | | 38 | BackupCatalog | 2013-11-02 23:10:02 | B | F | 1 | 28,634 | T | | 39 | Adams-Documents | 2013-11-03 23:05:02 | B | F | 339 | 67,110,961 | T | | 40 | BackupCatalog | 2013-11-03 23:10:02 | B | F | 1 | 33,449 | T | | 42 | BackupCatalog | 2013-11-04 23:10:02 | B | F | 1 | 34,275 | T | | 44 | BackupCatalog | 2013-11-05 23:10:02 | B | F | 1 | 35,140 | T | | 46 | BackupCatalog | 2013-11-06 23:10:02 | B | F | 1 | 36,102 | T | | 48 | BackupCatalog | 2013-11-07 23:10:02 | B | F | 1 | 37,192 | T | | 50 | BackupCatalog | 2013-11-08 23:10:02 | B | F | 1 | 38,640 | T | | 52 | BackupCatalog | 2013-11-09 23:10:02 | B | F | 1 | 39,617 | T | | 53 | Adams-Documents | 2013-11-10 23:05:03 | B | D | 59 | 4,301,013 | T | | 54 | BackupCatalog | 2013-11-10 23:10:03 | B | F | 1 | 42,473 | T | | 56 | BackupCatalog | 2013-11-11 23:10:02 | B | F | 1 | 43,567 | T | | 58 | BackupCatalog | 2013-11-12 23:10:02 | B | F | 1 | 44,277 | T | | 59 | Adams-Documents | 2013-11-13 23:05:03 | B | I | 0 | 0 | f | | 61 | Adams-Documents | 2013-11-19 06:05:13 | B | I | 48 | 5,875,692 | T | | 63 | Adams-Documents | 2013-11-19 23:11:00 | B | I | 48 | 5,875,692 | T | | 65 | Adams-Documents | 2013-11-19 23:11:38 | B | I | 48 | 5,875,692 | T | | 67 | Adams-Documents | 2013-11-19 23:12:11 | B | D | 113 | 29,770,528 | T | | 69 | Adams-Documents | 2013-11-19 23:12:54 | B | I | 48 | 5,875,692 | T | | 71 | Adams-Documents | 2013-11-19 23:13:33 | B | I | 48 | 5,875,692 | T | | 60 | BackupCatalog | 2013-11-19 23:14:10 | B | F | 1 | 44,136 | T | | 62 | BackupCatalog | 2013-11-19 23:14:13 | B | F | 1 | 44,408 | T | | 64 | BackupCatalog | 2013-11-19 23:14:15 | B | F | 1 | 44,675 | T | | 66 | BackupCatalog | 2013-11-19 23:14:18 | B | F | 1 | 44,889 | T | | 68 | BackupCatalog | 2013-11-19 23:14:20 | B | F | 1 | 45,149 | T | | 70 | BackupCatalog | 2013-11-19 23:14:23 | B | F | 1 | 45,405 | T | | 72 | BackupCatalog | 2013-11-19 23:14:25 | B | F | 1 | 45,682 | T | | 73 | Adams-Documents | 2013-11-20 23:05:02 | B | I | 20 | 759,285 | T | | 74 | BackupCatalog | 2013-11-20 23:10:02 | B | F | 1 | 47,250 | T | | 75 | Adams-Documents | 2013-11-21 23:05:03 | B | I | 0 | 0 | f | | 77 | Adams-Documents | 2013-11-23 19:05:18 | B | I | 0 | 0 | E | | 76 | BackupCatalog | 2013-11-23 19:08:21 | B | F | 1 | 46,972 | T | | 78 | BackupCatalog | 2013-11-23 19:08:24 | B | F | 1 | 47,379 | T | Any commands for troubleshooting are welcome +---------------------------------------------------------------------- |This was sent by t.i.iva...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +---------------------------------------------------------------------- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users