Hi there,

I have setup bacula, because I think Bacula is one of the best backup programs 
ever. The setup of it was quite difficult though. One of the questions I still 
have is the following:

I've setup 4 machines, with 2 SD's:

IL1 (Win) -> IL2 (sd)
IL2 (Deb) -> IL3 (sd)
IL3 (Deb) -> IL2 (sd)
Lightning (deb) -> IL2 (sd)

As you can see, I backup the 1 and 3 to 2, and the 2 is backupped to 3. My own 
machine (Lightning) is backupped to 2. (Things to fix: the catalog should be 
backupped to gmail or something :))

This works, however, the naming of the volumes seems to be crippled in my 
config, so I get the following errors:

20-Jun 23:07 il2-sd: IL3_3.2006-06-20_23.05.02 Warning: Volume "Inc-0119" not 
on device "IL2Storage" (/backup).
20-Jun 23:07 il2-sd: Marking Volume "Inc-0119" in Error in Catalog.

This is because Inc-0119 is on IL3-sd, not IL2-sd. This will not give errors, 
except for restoring files, you should give the SD with restoring, otherwise it 
will utterly fail.

What do I do wrong here?

Regards!
Diederik

#
# 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.38.5 (18 January 2006) -- debian 3.1
#
#  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.
#

### Who am I??

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

### Definitie storage:

Storage {
  Name = il2-sd
  Address = 2.IL.com                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "
  Device = IL2Storage
  Media Type = File
}

Storage {
  Name = il3-sd
  Address = 3.IL.com                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = ""
  Device = IL3Storage
  Media Type = File
}

### Definitie bakken:
Client {
  Name = il1-fd
  Address = 1.IL.com
  FDPort = 9102
  Catalog = MyCatalog
  Password = ""          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = il2-fd
  Address = linux
  FDPort = 9102
  Catalog = MyCatalog
  Password = ""          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = il3-fd
  Address = 3.IL.com
  FDPort = 9102
  Catalog = MyCatalog
  Password = ""          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = diedx-fd
  Address = diedx.nl
  FDPort = 9102
  Catalog = MyCatalog
  Password = ""          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

###

#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /tmp

Job {
  Name = "IL 1"
  Type = Backup
#  Level = Incremental
  Client = il1-fd
  FileSet = "Win Set"
  Storage = il2-sd
  Write Bootstrap = "/var/bacula/working/il1.bsr"
  Schedule = "WeeklyCycle"
  Pool = Full-Pool
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Messages = Standard
}

Job {
  Name = "IL 2"
  Type = Backup
#  Level = Incremental
  Client = il2-fd
  FileSet = "Full Set"
  Storage = il3-sd
  Write Bootstrap = "/var/bacula/working/il2.bsr"
  Schedule = "WeeklyCycle"
  Pool = Full-Pool
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Messages = Standard
}

Job {
  Name = "IL 3"
  Type = Backup
#  Level = Incremental
  Client = il3-fd
  FileSet = "Full Set"
  Storage = il2-sd
  Write Bootstrap = "/var/bacula/working/il3.bsr"
  Schedule = "WeeklyCycle"
  Pool = Full-Pool
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Messages = Standard
}

Job {
  Name = "Lightning"
  Type = Backup
#  Level = Incremental
  Client = diedx-fd
  FileSet = "Lightning Set"
  Storage = il2-sd
  Write Bootstrap = "/var/bacula/working/diedx.bsr"
  Schedule = "WeeklyCycle"
  Pool = Full-Pool
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Messages = Standard
}


# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  Client = il2-fd
  Type = Backup
  Messages = Standard
  Storage = il3-sd
  Pool = Catalog-Pool
  #JobDefs = "il2-jobdef"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula4il"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/bacula/working/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

#
# 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=il2-fd
  FileSet="Full Set"                  
  Storage = il2-sd
  Pool = Catalog-Pool
  Messages = Standard
  Where = /tmp/bacula-restores
}


# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = SHA1 compression=GZIP9 exclude=yes
    }
#    
#  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 = /var/tmp/bacula-1.38.5
        File = /
        File = /var
        File = /usr
        File = /home
  }

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

## Fileset Windows
FileSet {
  Name = "Win Set"
  Include {
    Options {
      signature = SHA1 compression=GZIP9
  #    Enable VSS = yes
    }
        File = "c:/"
        File = "d:/"
  }
  Exclude {
    File = /proc
  }
}

## Fileset Lightning
FileSet {
  Name = "Lightning Set"
  Include {
    Options {
      signature = SHA1 compression=GZIP9 exclude=yes fstype=reiserfs onefs=no
    }
#    
#  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 = /var/tmp/bacula-1.38.5
        File = /
        File = /var
        File = /usr
        File = /home
  }

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


#
# 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
}

# 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/bacula/working/bacula.sql
    File = /var/lib/mysql/bacula
  }
}




# Generic catalog service
Catalog {
  Name = MyCatalog
  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 = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t 
%e of %c %l\" %r"
  operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: 
Intervention needed for %j\" %r"
  mail = = all, !skipped            
  operator =  = 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 = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula 
daemon message\" %r"
  mail =  = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/bacula/working/log" = all, !skipped
}



# Testen met pools (http://www.bacula.org/dev-manual/Automated_Disk_Backup.html)
# Hieronder was nog de normale pool    
# 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
#  Maximum Volume Jobs = 1              # DiedX: Check 
http://www.bacula.org/rel-manual/Configuring_Director.html#SECTION000149000000000000000
#                                       # Bedoeling is 1 file per backup
#  Label Format = "File-"               # Lijkt me handig dat hij zelf files 
noemt  :) 
#}

Pool {
  Name = Full-Pool
  Pool Type = Backup
  #Recycle = yes
  Recycle = no
  AutoPrune = yes
  Volume Retention = 6 months
  Maximum Volume Jobs = 1
  Label Format = Full-
#  Maximum Volumes = 6
}

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

Pool {
  Name = Inc-Pool
  Pool Type = Backup
  #Recycle = yes
  Recycle = no
  AutoPrune = yes
  Volume Retention = 20 days
  Maximum Volume Jobs = 6
  Label Format = Inc-
  #Maximum Volumes = 5
}

Pool {
  Name = Catalog-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 1 Year
  #Maximum Volume Jobs = 6
  Label Format = Catalog-
  Maximum Volumes = 400
}

### Einde pools
                
#
# Restricted console used by tray-monitor to get the status of the director
#
#Console {
#  Name = linux-mon
#  Password = ""
#  CommandACL = status, .status
#}
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to