Greetings!

     Here is my config.out:

<<>>
Configuration on Tue Oct 11 22:18:22 EDT 2005:

  Host:                       i686-redhat-linux-gnu -- redhat (Stentz)
  Bacula version:             1.36.3 (22 April 2005)
  Source code location:       .
  Install binaries:           /home/bacula/bin
  Install config files:       /home/bacula/bin
  Scripts directory:          /home/bacula/bin
  Working directory:          /var/bacula/working
  PID directory:              /var/run
  Subsys directory:           /var/run/subsys
  C Compiler:                 gcc 4.0.0
  C++ Compiler:               g++ 4.0.0
  Compiler flags:              -g -O2 -Wall
  Linker flags:                
  Libraries:                  -lpthread 
  Statically Linked Tools:    no
  Statically Linked FD:       no
  Statically Linked SD:       no
  Statically Linked DIR:      no
  Statically Linked CONS:     no
  Database type:              MySQL
  Database lib:               -L/usr/lib/mysql -lmysqlclient_r -lz

  Job Output Email:           barry
  Traceback Email:            barry
  SMTP Host Address:          localhost

  Director Port:              9101
  File daemon Port:           9102
  Storage daemon Port:        9103

  Director User:              
  Director Group:             
  Storage Daemon User:        
  Storage DaemonGroup:        
  File Daemon User:           
  File Daemon Group:          

  SQL binaries Directory      /usr/bin

  Large file support:         yes
  Bacula conio support:       yes -ltermcap
  readline support:           no 
  TCP Wrappers support:       no
  ZLIB support:               yes
  enable-smartalloc:          yes
  enable-gnome:               yes Version 2.x
  enable-wx-console:          no
  enable-tray-monitor:        yes
  client-only:                no
  ACL support:                yes
<<>>

     My scheduled backup this morning did attempt to use the
WesternDigital storage (which has /media/wd instead of /media/usbdisk).
But, I got an error.  I haven't really researched it yet.  I did check the
things it said for Possible causes, and I haven't (immediately) found
anything except the last item as the cause.

     I actually changed every password, last night.  (The reason was my
tray-monitor.conf file was messed up.  And, even after I changed it, when
I started up bacula-tray-monitor it still reported an error.  So, I
actually changed every password to be identical.  At least for now.)  I
also discovered that my enable-wx-console was no (as you see above), and
so I don't seem to have the monitor thing mentioned in the manual.  (I was
planning on running it at some point, but -- as you can probably tell --
I hadn't yet.)  :-)

     Anyway, every password is identical, and the names seem to be okay.
The maximum concurrent jobs in the FD is 20.  I don't know about FD
networking.

     Here is the error, from this morning:

<<>>
Connecting to Director barrycon:9101
1000 OK: barrycon-dir Version: 1.36.3 (22 April 2005)
17-Jan 01:05 barrycon-dir: Created new FileSet record "FullSet" 2006-01-17 
01:05:03
17-Jan 01:05 barrycon-dir: sql_find.c:132 No Job record found: ERR=
CMD=SELECT StartTime FROM Job WHERE JobStatus='T' AND Type='B' AND Level='F' 
AND Name='barryconWesternDigital' AND ClientId=1 AND FileSetId=6 ORDER BY 
StartTime DESC LIMIT 1
17-Jan 01:05 barrycon-dir: No prior or suitable Full backup found. Doing FULL 
backup.
17-Jan 01:05 barrycon-dir: Start Backup JobId 69, 
Job=barryconWesternDigital.2006-01-17_01.05.01
17-Jan 01:05 barrycon-dir: barryconWesternDigital.2006-01-17_01.05.01 Fatal 
error: Unable to authenticate with File daemon. Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the FD or
FD networking messed up (restart daemon).
Please see http://www.bacula.org/html-manual/faq.html#AuthorizationErrors for 
help.
17-Jan 01:05 barrycon-dir: barryconWesternDigital.2006-01-17_01.05.01 Error: 
Bacula 1.36.3 (22Apr05): 17-Jan-2006 01:05:08
  JobId:                  69
  Job:                    barryconWesternDigital.2006-01-17_01.05.01
  Backup Level:           Full (upgraded from Differential)
  Client:                 barrycon-fd
  FileSet:                "FullSet" 2006-01-17 01:05:03
  Pool:                   "Full-Pool"
  Storage:                "WesternDigital"
  Start time:             17-Jan-2006 01:05:03
  End time:               17-Jan-2006 01:05:08
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0
  SD Bytes Written:       0
  Rate:                   0.0 KB/s
  Software Compression:   None
  Volume name(s):         
  Volume Session Id:      1
  Volume Session Time:    1137451820
  Last Volume Bytes:      0
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  
  SD termination status:  Waiting on FD
  Termination:            *** Backup Error ***

17-Jan 03:11 barrycon-dir: sql_find.c:132 No Job record found: ERR=
CMD=SELECT StartTime FROM Job WHERE JobStatus='T' AND Type='B' AND Level='F' 
AND Name='WesternDigitalBackupCatalog' AND ClientId=1 AND FileSetId=2 ORDER BY 
StartTime DESC LIMIT 1
17-Jan 03:11 barrycon-dir: No prior or suitable Full backup found. Doing FULL 
backup.
17-Jan 03:11 barrycon-dir: Start Backup JobId 70, 
Job=WesternDigitalBackupCatalog.2006-01-17_03.10.00
17-Jan 03:11 barrycon-dir: WesternDigitalBackupCatalog.2006-01-17_03.10.00 
Fatal error: Unable to authenticate with File daemon. Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the FD or
FD networking messed up (restart daemon).
Please see http://www.bacula.org/html-manual/faq.html#AuthorizationErrors for 
help.
17-Jan 03:11 barrycon-dir: WesternDigitalBackupCatalog.2006-01-17_03.10.00 
Error: Bacula 1.36.3 (22Apr05): 17-Jan-2006 03:11:30
  JobId:                  70
  Job:                    WesternDigitalBackupCatalog.2006-01-17_03.10.00
  Backup Level:           Full (upgraded from Differential)
  Client:                 barrycon-fd
  FileSet:                "Catalog" 2005-10-15 02:10:05
  Pool:                   "Full-Pool"
  Storage:                "WesternDigital"
  Start time:             17-Jan-2006 03:10:02
  End time:               17-Jan-2006 03:11:30
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0
  SD Bytes Written:       0
  Rate:                   0.0 KB/s
  Software Compression:   None
  Volume name(s):         
  Volume Session Id:      2
  Volume Session Time:    1137451820
  Last Volume Bytes:      0
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  
  SD termination status:  Waiting on FD
  Termination:            *** Backup Error ***
<<>>

     I'll now include my three main configuration files.  It may be this
upcoming weekend before I really have time, but I'll look into this later.

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 1.36.3 (22 April 2005) -- redhat (Stentz)
#
#  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 = barrycon-dir
  Description = "Bacula Director daemon Interface"
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/home/bacula/bin/query.sql"
  WorkingDirectory = "/var/bacula/working"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 2
  Password = "<password>"
  Messages = Daemon
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Differential
  Client = barrycon-fd 
  FileSet = "FullSet"
  Messages = Standard
  Pool = Default
  Maximum Concurrent Jobs = 1
  Full Backup Pool = Full-Pool
  Differential Backup Pool = Diff-Pool
}


#
# Define the main save backup job

Job {
  Name = "barryconSimpleTech"
  JobDefs = "DefaultJob"
  #Pool = Full-Pool
  Storage = "SimpleTech"
  Schedule = "SimpleTechWeeklyCycle"
  Write Bootstrap = "/media/simpletech/barrycon.bsr"
}

Job {
  Name = "barryconWesternDigital"
  JobDefs = "DefaultJob"
  #Pool = Full-Pool
  Storage = "WesternDigital"
  Schedule = "WesternDigitalWeeklyCycle"
  Write Bootstrap = "/media/wd/barrycon.bsr"
}

# Backup the catalog database (after the weekly save)
Job {
  Name = "SimpleTechBackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Storage = "SimpleTech"
  Schedule = "SimpleTechCatalogBackupWeeklyCycle"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/home/bacula/bin/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/home/bacula/bin/delete_catalog_backup"
  Write Bootstrap = "/media/simpletech/barryconCatalog.bsr"
  Priority = 11                   # run after main backup
}

# Backup the catalog database (after the weekly save)
Job {
  Name = "WesternDigitalBackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Storage = "WesternDigital"
  Schedule = "WesternDigitalCatalogBackupWeeklyCycle"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/home/bacula/bin/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/home/bacula/bin/delete_catalog_backup"
  Write Bootstrap = "/media/wd/barryconCatalog.bsr"
  Priority = 11                   # run after main backup
}

# Test backup (for small, test backups)
Job {
  Name = "TestBackup"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet = "TestBackup"
  Storage = InTmpFiles
  Pool = Default
}

# Standard Restore template, to be changed by Console program
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=barrycon-fd                 
  FileSet="FullSet"                  
  Storage = SimpleTech
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

# List of files to be backed up
FileSet {
  Name = "FullSet"
  Include {
    Options {
      signature = MD5
      compression = gzip
    }
#    
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
#  Note: / backs up everything on the root partition.
#    if you have other partitons such as /usr or /home
#    you will probably want to add them too.
#
#  By default this is defined to point to the Bacula build
#    directory to give a reasonable FileSet to backup to
#    disk storage during initial testing.
#
    File = /
    File = /usr
    File = /home
    File = /boot
    File = /dev
    File = /multimedia
    File = /vmware
  }

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

#
# When to do the backups, full backup on first Saturday of the month (for
# the SimpleTech drive) and the first Tuesday of the month (for the
# Western Digital drive);
#  differential (i.e. incremental since full) every other Saturday (to the
#  SimpleTech drive) and Tuesday (to the Western Digital drive).
Schedule {
  Name = "SimpleTechWeeklyCycle"
  Run = Level=Full 1st sat at 1:05
  Run = Level=Differential 2nd-5th sat at 1:05
}

Schedule {
  Name = "WesternDigitalWeeklyCycle"
  Run = Level=Full 1st tue at 1:05
  Run = Level=Differential 2nd-5th tue at 1:05
}

Schedule {
  Name = "SimpleTechCatalogBackupWeeklyCycle"
  Run = Level=Full 1st sat at 3:10
  Run = Level=Differential 2nd-5th sat at 3:10
}

Schedule {
  Name = "WesternDigitalCatalogBackupWeeklyCycle"
  Run = Level=Full 1st tue at 3:10
  Run = Level=Differential 2nd-5th tue at 3:10
}

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

#This is the backup for TestBackup
FileSet {
  Name = "TestBackup"
  Include {
    Options {
      signature = MD5
      compression = gzip
    }
    File = /FMS
  }
}

# Client (File Services) to backup
Client {
  Name = barrycon-fd
  Address = barrycon.cfl.rr.com
  FDPort = 9102
  Catalog = barryconCatalog
  Password = "<password>"
  File Retention = 5 months            # five months
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

# Definiton of file storage device
Storage {
  Name = "SimpleTech"
# Do not use "localhost" here    
  Address = barrycon.cfl.rr.com          # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "<password>"
  Device = "SimpleTech"
  Media Type = File1
}

Storage {
  Name = "WesternDigital"
# Do not use "localhost" here    
  Address = barrycon.cfl.rr.com          # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "<password>"
  Device = "WesternDigital"
  Media Type = File2
}

Storage {
  Name = InTmpFiles
# Do not use "localhost" here    
  Address = barrycon.cfl.rr.com          # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "<password>"
  Device = TmpStorage
  Media Type = TmpFile
}

# Generic catalog service
Catalog {
  Name = barryconCatalog
  dbname = bacula; user = bacula; password = ""
}

# 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.
#
  #mailcommand = "/home/bacula/bin/bsmtp -h barrycon.cfl.rr.com -f \"\(Bacula\) 
%r\" -s \"Bacula: %t %e of %c %l\" %r"
  #operatorcommand = "/home/bacula/bin/bsmtp -h barrycon.cfl.rr.com -f 
\"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
  mailcommand = "/bin/mail -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/bin/mail -s \"Bacula: Intervention needed for %j\" %r"
  mail = barry = all, !skipped            
  operator = barry = 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/bacula/working/log" = all, !skipped
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  #mailcommand = "/usr/local/bin/bsmtp -h barrycon.cfl.rr.com -f \"\(Bacula\) 
%r\" -s \"Bacula daemon message\" %r"
  mailcommand = "/bin/mail -s \"Bacula daemon message\" %r"
  mail = barry = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/bacula/working/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
  Label Format = "Test-${Year}-${Month}-${Day}-${Hour}-${Minute}-${Second}"
}

Pool {
  Name = Full-Pool
  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
  UseVolumeOnce = yes
  Label Format = "Full-${Year}-${Month}-${Day}-${Hour}-${Minute}-${Second}"
}

Pool {
  Name = Diff-Pool
  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
  UseVolumeOnce = yes
  Label Format = "Diff-${Year}-${Month}-${Day}-${Hour}-${Minute}-${Second}"
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = barrycon-mon
  Password = "<password>"
  CommandACL = status, .status
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = barrycon-mon
  Password = "<password>"
  CommandACL = status, .status
}
<<>>

     My bacula-fd.conf:

<<>>
#
# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 1.36.3 (22 April 2005) -- redhat (Stentz)
#
# 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 = barrycon-fd
  Password = "<password>"
}

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

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

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = barrycon-dir = all, !skipped
}
<<>>

     And, my bacula-sd.conf:

<<>>
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 1.36.3 (22 April 2005) -- redhat (Stentz)
#
# 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 = barrycon-sd
  SDPort = 9103                  # Director's port      
  WorkingDirectory = "/var/bacula/working"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = barrycon-dir
  Password = "<password>"
}

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

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

Device {
  Name = TmpStorage
  Media Type = TmpFile
  Archive Device = /tmp
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = no;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
}

Device {
  Name = "SimpleTech"
  Media Type = File1
  Archive Device = /media/simpletech
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = no;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = "WesternDigital"
  Media Type = File2
  Archive Device = /media/wd
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = no;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

# 
# Send all messages to the Director, 
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = barrycon-dir = all
}
<<>>

     If anyone has a chance to look over this and sees anything that I've
messed up, I'd be delighted to hear the indication!  :-)  Otherwise, I'll
look into it this upcoming weekend.

     Thank you!

     Barry

-- 
Barry L. Bond                     | http://home.cfl.rr.com/os9barry/
Software Engineer, ITT Industries | (My personal home web page, last
                                  | updated February 17, 2005)
                                  |
[EMAIL PROTECTED] <- personal      |  Re-Vita Products:
[EMAIL PROTECTED] <- Work ONLY   |  http://www.re-vita.net/barrybond
                                  |  Re-Vita Distributor Information
Home office:  407-382-2815        |  http://www.re-vita.net/barrybond-2
Work:         321-494-5627        |  Toll free order:  1-888-820-5531


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to