Hi,

I am trying to get backups to work and I have 2 problems, I keep having to
manually label a "tape" (so now I have 3 Local "tapes" and also I get
BLOCKED and backups will not run,

what am I doing wrong please?

====
8><---
Jobs waiting to reserve a drive:
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
     2  Full          1    108.9 K  OK       02-Nov-17 13:27 BackupCatalog
     3  Full     20,183    2.370 G  OK       02-Nov-17 14:29
Backupprcprimary01
     4           20,183    2.370 G  OK       02-Nov-17 14:42
RestoreLocalFiles
     5  Incr        543    20.22 M  OK       02-Nov-17 23:05
BackupLocalFiles
     6  Incr         87    26.03 K  OK       02-Nov-17 23:05
Backupprcprimary01
     7  Full          1    3.459 M  OK       02-Nov-17 23:10 BackupCatalog
     8  Incr          0         0   Cancel   09-Nov-17 21:46
BackupLocalFiles
    11  Incr        416    2.505 G  OK       10-Nov-17 13:02
BackupLocalFiles
    12  Incr        667    11.39 M  OK       10-Nov-17 13:03
Backupprcprimary01
    13  Incr          0         0   Cancel   14-Nov-17 06:32
BackupLocalFiles
====

Device status:

Device file: "FileStorage" (/bacula/backup) is not open.
    Device is BLOCKED waiting to create a volume for:
       Pool:        File
       Media type:  File
==
====

Used Volume status:
====

====

*
==============

Any ideas how to fixed "blocked" please?



bacula-sd.conf,

root@prcbackup01:/etc/bacula# more new-bacula-sd.conf

  Name = prcbackup01-sd
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 192.168.1.30
}

Director {
  Name = prcbackup01-dir
  Password = "xxxx"
}

Director {
  Name = prcbackup01-mon
  Password = "xxxx"
  Monitor = yes
}



Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /bacula/backup
  Random Access = Yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}


Messages {
  Name = Standard
  director = prcbackup01-dir = all
}
======


bacula-dir.conf

======

 Name = prcbackup01-dir
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/run/bacula"
  Maximum Concurrent Jobs = 20
  Messages = Daemon
  DirAddress = 192.168.1.30
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = prcbackup01-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = FileStorage
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


Job {
  Name = "BackupLocalFiles"
  JobDefs = "DefaultJob"
}




Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
}

Job {
  Name = "RestoreLocalFiles"
  Type = Restore
  Client=prcbackup01-fd
  FileSet="Full Set"
  Storage = FileStorage
  Pool = File
  Messages = Standard
  Where = /bacula/restore
}


FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
        compression = GZIP
    }
    File = /usr/sbin
    File = /home
  }

  Exclude {
    File = /var/lib/bacula
    File = /bacula
    File = /nonexistant/path/to/file/archive/dir
    File = /proc
    File = /tmp
    File = /sys
    File = /.journal
    File = /.fsck
  }
}

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 = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}

FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bacula/bacula.sql"
  }
}

Client {
  Name = prcbackup01-fd
  Address = 192.168.1.30
  FDPort = 9102
  Catalog = MyCatalog
}



Storage {
  Name = FileStorage
  SDPort = 9103
  Password = "xxxxxxxxxxxxx"
  Device = FileStorage
  Media Type = File
}



Catalog {
  Name = MyCatalog
  dbname = "bacula"; DB Address = "localhost"; dbuser = "bacula";
dbpassword = "xxxxxxx"
}

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 = all, !skipped
  operator = root = mount
  console = all, !skipped, !saved
  append = "/var/log/bacula/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 = all, !skipped
  console = all, !skipped, !saved
  append = "/var/log/bacula/bacula.log" = all, !skipped
}

Pool {
  Name = Default
  Pool Type = Backup
}

Pool {
  Name = File
  Pool Type = Backup
  Label Format = Local-
}


Pool {
  Name = Scratch
  Pool Type = Backup
}

Console {
  Name = prcbackup01-mon
  Password = "xxxxx"
  CommandACL = status, .status

}
@|"find /etc/bacula/conf.d -name '*.conf' -type f -exec echo @{} \;"
============
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to