My BackupCatalog is going into Queue stat each evening. I have to create a
new label for the backup to finish each morning. I am backing up to a
second drive. I attached my config files snipped of passwords. How to I
attach an appendable volume to the backup of BackupCatalog? Here is the
directory list of that backup drive:

root@cablemon sdb1/backups# ls -la
total 1311260
drwxrwxrwx 2 root   bacula      4096 Apr 13 11:17 .
drwxrwxrwx 5 root   bacula      4096 Apr  2 10:38 ..
-rw-r----- 1 bacula tape     3625216 Apr 10 12:33 BacCatVolume001
-rw-r----- 1 bacula tape         230 Apr 10 13:52 Client1Diff-PoolVolume001
-rw-r----- 1 bacula tape   158303573 Apr 10 13:51 Client1Full-PoolVolume001
-rw-r----- 1 bacula tape         228 Apr 10 13:51 Client1Inc-PoolVolume001
-rw-r----- 1 bacula tape         219 Apr 10 13:39 Client1Volume001
-rwxrwxrwx 1 root   bacula  17127387 Apr  2 10:39 Full-0001
-rw-r----- 1 bacula tape   146039669 Apr  2 14:30 Full-0003
-rw-r----- 1 bacula tape   147507040 Apr  2 23:05 Full-0004
-rw-r----- 1 bacula tape     1641060 Apr  2 23:10 Full-0005
-rw-r----- 1 bacula tape     1646942 Apr  3 23:10 Full-0006
-rw-r----- 1 bacula tape     1652720 Apr  4 23:10 Full-0007
-rw-r----- 1 bacula tape   146941512 Apr  5 16:09 Full-0008
-rw-r----- 1 bacula tape     3412086 Apr  5 23:10 Full-0009
-rw-r----- 1 bacula tape     3448844 Apr  6 23:10 Full-0011
-rw-r----- 1 bacula tape     5920582 Apr 11 08:54 FullVolume001
-rw-r----- 1 bacula tape   122098352 Apr  5 23:05 Inc-0002
-rw-r----- 1 bacula tape   284030464 Apr  9 13:42 Inc-0010
-rw-r----- 1 bacula tape   291733844 Apr 12 23:05 Inc-0012
-rw-r----- 1 bacula tape     5995874 Apr 13 11:17 MyCatVol
-rw-r--r-- 1 root   root     1529975 Apr  3 10:45 cacti.sql

Here is my attempt to backup the catalog with some show info.

*sh filesets
FileSet: name=Full Set
      O M
      N
      I /usr/share/phpmyadmin
      I /usr/share/smokeping
      I /usr/share/cacti
      I /usr/share/webmin
      I /usr/share/dbconfig-common
      I /etc
      I /var/lib/smokeping
      I /usr/lib/cgi-bin
      I /usr/local/sbin
      I /var/local/mysqlbackups
      N
      E /var/lib/bacula
      E /var/lib/mysql
      E /mnt/sdb1
      E /proc
      E /tmp
      E /.journal
      E /.fsck
      N
FileSet: name=Verify Set
      O
      N
FileSet: name=Catalog
      O M
      N
      I /var/lib/bacula/bacula.sql
      N

*status dir
cablemon-dir Version: 5.0.1 (24 February 2010) i486-pc-linux-gnu ubuntu
10.04
Daemon started 12-Apr-12 09:03, 3 Jobs run since started.
 Heap: heap=512,000 smbytes=146,775 max_bytes=178,178 bufs=296 max_bufs=355

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================
Incremental    Backup    10  13-Apr-12 23:05    BackupClient1
 Client1Volume001
Full           Backup    11  13-Apr-12 23:10    BackupCatalog
 Client1Volume001
               Admin     10  14-Apr-12 01:05    Watchdog
====

Running Jobs:
Console connected at 13-Apr-12 13:43
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
====================================================================
    46  Full          1    3.621 M  OK       10-Apr-12 12:33 BackupCatalog
    47                0         0   OK       10-Apr-12 13:06 Watchdog
    50  Full     14,047    155.9 M  OK       10-Apr-12 13:51 BackupClient1
    51  Incr      5,879    108.2 M  OK       10-Apr-12 23:05 BackupClient1
    52  Full          1    5.915 M  OK       11-Apr-12 08:54 BackupCatalog
    53                0         0   OK       11-Apr-12 08:54 Watchdog
    54  Incr        296    67.32 M  OK       11-Apr-12 23:05 BackupClient1
    57  Incr        259    58.70 M  OK       12-Apr-12 23:05 BackupClient1
    58  Full          1    5.990 M  OK       13-Apr-12 11:17 BackupCatalog
    59                0         0   OK       13-Apr-12 11:17 Watchdog

====

*status client
The defined Client resources are:
     1: cablemon-fd
     2: Watchdog
Select Client (File daemon) resource (1-2): status storage
Expected a positive integer, got: status storage
Select Client (File daemon) resource (1-2): 0
Please enter a number between 1 and 2
Select Client (File daemon) resource (1-2): 1
Connecting to Client cablemon-fd at localhost:9102

cablemon-fd Version: 5.0.1 (24 February 2010)  i486-pc-linux-gnu ubuntu
10.04
Daemon started 12-Apr-12 09:03, 2 Jobs run since started.
 Heap: heap=929,792 smbytes=84,411 max_bytes=200,471 bufs=78 max_bufs=185
 Sizeof: boffset_t=8 size_t=4 debug=0 trace=0

Running Jobs:
Director connected at: 13-Apr-12 13:45
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
======================================================================
    45  Full          0         0   Error    10-Apr-12 11:14 BackupCatalog
    46  Full          1    3.621 M  OK       10-Apr-12 12:33 BackupCatalog
    48  Full          0         0   Error    10-Apr-12 13:47 BackupClient1
    50  Full     14,047    155.9 M  OK       10-Apr-12 13:51 BackupClient1
    51  Incr      5,879    108.2 M  OK       10-Apr-12 23:05 BackupClient1
    52  Full          1    5.915 M  OK       11-Apr-12 08:54 BackupCatalog
    54  Incr        296    67.32 M  OK       11-Apr-12 23:05 BackupClient1
    55  Full          0         0   Error    12-Apr-12 09:03 BackupCatalog
    57  Incr        259    58.70 M  OK       12-Apr-12 23:05 BackupClient1
    58  Full          1    5.990 M  OK       13-Apr-12 11:17 BackupCatalog
====

*status storage
Automatically selected Storage: File
Connecting to Storage daemon File at localhost:9103

cablemon-sd Version: 5.0.1 (24 February 2010) i486-pc-linux-gnu ubuntu 10.04
Daemon started 12-Apr-12 09:03, 2 Jobs run since started.
 Heap: heap=335,872 smbytes=81,361 max_bytes=219,832 bufs=71 max_bufs=111
Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8

Running Jobs:
No Jobs running.
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
    45  Full          0         0   Cancel   10-Apr-12 11:14 BackupCatalog
    46  Full          1    3.621 M  OK       10-Apr-12 12:33 BackupCatalog
    48  Full          0         0   Cancel   10-Apr-12 13:47 BackupClient1
    50  Full     14,047    157.7 M  OK       10-Apr-12 13:51 BackupClient1
    51  Incr      5,879    109.1 M  OK       10-Apr-12 23:05 BackupClient1
    52  Full          1    5.915 M  OK       11-Apr-12 08:54 BackupCatalog
    54  Incr        296    67.35 M  OK       11-Apr-12 23:05 BackupClient1
    55  Full          0         0   Cancel   12-Apr-12 09:03 BackupCatalog
    57  Incr        259    58.74 M  OK       12-Apr-12 23:05 BackupClient1
    58  Full          1    5.990 M  OK       13-Apr-12 11:17 BackupCatalog
====

Device status:
Device "FileStorage" (/mnt/sdb1/backups) is not open.
====

Used Volume status:
====

====

*run
The defined Catalog resources are:
     1: MyCatalog
     2: Verify
Select Catalog resource (1-2): 1
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
     1: BackupClient1
     2: BackupCatalog
     3: RestoreFiles
     4: Watchdog
Select Job resource (1-4): 2
Run Backup job
JobName:  BackupCatalog
Level:    Full
Client:   cablemon-fd
FileSet:  Catalog
Pool:     Default (From Job resource)
Storage:  File (From Job resource)
When:     2012-04-13 13:47:54
Priority: 11
OK to run? (yes/mod/no): yes
Job queued. JobId=60
*exit

>From messages...
BackupCatalog 60 Full is waiting for an appendable Volume
root@cablemon /etc/bacula# cat bacula-dir.conf
#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.04
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#

Director {                            # define myself
  Name = cablemon-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "12345"         # Console password
  Messages = Daemon
  DirAddress = 127.0.0.1
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
#  Level = Incremental
  Client = cablemon-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
#  Pool = File
  Pool = Default
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


#
# Define the main nightly save backup job
#   By default, this job will back up to disk in 
/nonexistant/path/to/file/archive/dir

Job {
  Name = "BackupClient1"
  JobDefs = "DefaultJob"
  RunBeforeJob = "/usr/local/sbin/backupdbs"
}

#  Name = "BackupClient2"
#  Client = cablemon2-fd
#  JobDefs = "DefaultJob"
#}

# Backup the catalog database (after the nightly save)
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 = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Priority = 11                   # run after main backup
  Pool = Default
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=cablemon-fd
  FileSet="Full Set"
  Storage = File
  Pool = Default
  Messages = Standard
  Where = /mnt/sdb1/bacula-restores
}

Job {
  Name = "Watchdog"
  Type = Admin
  Client = Watchdog
  FileSet = "Verify Set"
  Messages = Standard
  Storage = File
  Pool = Default
  Schedule = "Watchdog"
  RunAfterJob = "/etc/bacula/watchdog %c %d"
}

# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
#

#    or include an external list with:
#
#    File = <file-name
#
#  Note: / backs up everything on the root partition.
#    if you have other partitions such as /usr or /home
#    you will probably want to add them too.
#
#  By default this is defined to point to the Bacula binary
#    directory to give a reasonable FileSet to backup to
#    disk storage during initial testing.
#
    File = /usr/share/phpmyadmin
    File = /usr/share/smokeping
    File = /usr/share/cacti
    File = /usr/share/webmin
    File = /usr/share/dbconfig-common
    File = /etc
    File = /var/lib/smokeping
    File = /usr/lib/cgi-bin
    File = /usr/local/sbin
    File = /var/local/mysqlbackups
  }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {
    File = /var/lib/bacula
    File = /var/lib/mysql
    File = /mnt/sdb1
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

#VerifySet definition, no actions



FileSet {
  Name = "Verify Set"
  Include {
    Options {
    }
        }
        }

# 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 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

Schedule {
  Name = "Watchdog"
  Run = Full sun-sat at 1:05
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bacula/bacula.sql"
  }
}

# Client (File Services) to backup
Client {
  Name = cablemon-fd
  Address = localhost
  FDPort = 9102
  Catalog = MyCatalog
  Password = "12345"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = Watchdog
  Address = localhost
  FDPort = 9102
  Catalog = Verify
  Password = "12345"
  File Retention = 1 day
  Job Retention = 1 month
  AutoPrune = yes
}

#
# Second Client (File Services) to backup
#  You should change Name, Address, and Password before using
#
#Client {
#  Name = cablemon2-fd
#  Address = localhost2
#  FDPort = 9102
#  Catalog = MyCatalog
#  Password = "12345"         # password for FileDaemon 2
#  File Retention = 30 days            # 30 days
#  Job Retention = 6 months            # six months
#  AutoPrune = yes                     # Prune expired Jobs/Files
#}


# Definition of file storage device
Storage {
  Name = File
# Do not use "localhost" here
#  Address = cablemon                # N.B. Use a fully qualified name here
  Address = localhost                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "12345"
  Device = FileStorage
  Media Type = File
}

# Generic catalog service
Catalog {
  Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
  dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "12345"
}

Catalog {
  Name = Verify
  dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "12345"
}

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
#  What this does is, it sets the email address that emails would display
#  in the FROM field, which is by default the same email as they're being
#  sent to.  However, if you send email to more than one address, then
#  you'll have to set the FROM address manually, to a single address.
#  for example, a 'no-re...@mydomain.com', is better since that tends to
#  tell (most) people that its coming from an automated source.

#
 # mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f "Bacula" -s \"Bacula: 
%t %e of %c %l\" %r"
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula: %t %e of %c %l\" %r"
 # operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f "Bacula" -s 
\"Bacula: Intervention needed for %j\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) 
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"

#Where to send email
  mail = murray.da...@vecima.com,root@localhost = all, !skipped
  #mail = root@localhost = all, !skipped
  operator = m...@domain.com,root@localhost = mount
  #operator = root@localhost = 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. However, it will
#          also keep all your messages if they scroll off the console.
#
  append = "/var/lib/bacula/log" = all, !skipped
  catalog = all
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped
  console = all, !skipped, !saved
  append = "/var/lib/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
}

Pool {
  Name = Full-Pool
  Pool Type = Backup
  Recycle = yes           # automatically recycle Volumes
  AutoPrune = yes         # Prune expired volumes
  Volume Retention = 6 months
  Maximum Volume Jobs = 1
  Label Format = Full-
  Maximum Volumes = 9
}

Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Recycle = yes           # automatically recycle Volumes
  AutoPrune = yes         # Prune expired volumes
  Volume Retention = 20 days
  Maximum Volume Jobs = 6
  Label Format = Inc-
  Maximum Volumes = 7
}

Pool {
  Name = Diff-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 40 days
  Maximum Volume Jobs = 1
  Label Format = Diff-
  Maximum Volumes = 10
}

# File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  Maximum Volume Bytes = 50G          # Limit Volume size to something 
reasonable
  Maximum Volumes = 100               # Limit number of Volumes in Pool
}

# Scratch pool definition
Pool {
  Name = Scratch
  Pool Type = Backup
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = cablemon-mon
  Password = "12345"
  CommandACL = status, .status
}
root@cablemon /etc/bacula#

root@cablemon /etc/bacula# cat bacula-fd.conf
#
# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.04
#
# 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 = cablemon-dir
  Password = "12345"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = cablemon-mon
  Password = "12345"
  Monitor = yes
}

#
# "Global" File daemon configuration specifications
#
FileDaemon {                          # this is me
  Name = cablemon-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/lib/bacula
  Pid Directory = /var/run/bacula
  Maximum Concurrent Jobs = 20
  FDAddress = 127.0.0.1
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = cablemon-dir = all, !skipped, !restored
}
root@cablemon /etc/bacula# cat bacula-sd.conf
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 5.0.1 (24 February 2010) -- ubuntu 10.04
#
# You may need to change the name of your tape drive
#   on the "Archive Device" directive in the Device
#   resource.  If you change the Name and/or the
#   "Media Type" in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage {                             # definition of myself
  Name = cablemon-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 127.0.0.1
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = cablemon-dir
  Password = "12345"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = cablemon-mon
  Password = "12345"
  Monitor = yes
}

#
# Note, for a list of additional Device templates please
#  see the directory <bacula-source>/examples/devices
# Or follow the following link:
#  
http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
#

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType.
#

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /mnt/sdb1/backups
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}

#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = cablemon-dir = all
}
root@cablemon /etc/bacula# ls
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to