Hi Phil,

You're right, I used "Use Volume Once" for the following reason.
For the full weekly backup to tape I want to use every week a new tape until a month has past for the full monthly backup. After that the weekly tapes are recycled, at least that was my idea (I used the example from the Bacula User Manual).


This is my bacula-dir.conf:

# Bacula Director Configuration file
#
# The only thing that MUST be changed is to add files or directories in the
# Include directive of the FileSet resource.
#
# For Bacula release 1.36.2 (28 February 2005) -- 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.


Director {                                 # define myself
 Name = fabriek-test-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 = Standard
}


# Define the main nightly save backup job for mmserver
Job {
 Name = "client1"
 Type = Backup
 Client = client1-fd
 FileSet = "client1"
 Level = "Incremental"
 Schedule = "WeeklyCycle"
 Storage = Maxtor
 Messages = Standard
 Pool = Daily
 Write Bootstrap = "/var/bacula/client1.bsr"
}

# Define the main nightly save backup job for fabriek-olvg
Job {
 Name = "client2"
 Type = Backup
 Client = client2-fd
 FileSet = "client2"
 Level = "Incremental"
 Schedule = "WeeklyCycle"
 Storage = Maxtor
 Messages = Standard
 Pool = Daily
 Write Bootstrap = "/var/bacula/client2.bsr"
}


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


# Standard Restore template, to be changed by Console program
# Custom Restore template for nightly save backup
Job {
 Name = "Restore files"
 Type = Restore
 Client = fabriek-test-fd
 FileSet = "client1"
 Storage = Maxtor
 Pool = Daily
 Messages = Standard
 Where = /tmp/bacula-restores
}


# List of files to be backed up from client1
FileSet {
 Name = "client1"
 Include {
   Options {
      Signature = MD5
      Exclude = yes
   }
   File = /var
   File = /home
   File = /backup
   File = /xtra
}
Exclude {
   File = /proc
   File = /tmp
   File = /.journal
   File = /.fsck
}
}

# List of files to be backed up from client2
FileSet {
 Name = "client2"
 Include {
   Options {
      Signature = MD5
   }
   File = "C:/share"
   File = "C:/webapps"
   File = "C:/test"
}
}


# When to do the backups
Schedule {
 Name = "WeeklyCycle"
 Run = Pool=Daily Tue-Fri at 11:00pm
 Run = Pool=Weekly 2nd-5th Monday at 11:00pm
 Run = Pool=Monthly 1st Mon at 11:00pm
}


# This does the catalog. It starts after the WeeklyCycle
#Schedule {
#  Name = "WeeklyCycleAfterBackup"
#  Run = Monday at 11:00pm
#}


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


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

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

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


# Definition of file storage device
# Maxtor USB Harddisk
Storage {
 Name = Maxtor
 Address = fabriek-test             # Use a fully qualified name here
 SDPort = 9103
 Password = ""
 Device = Maxtor
 Media Type = Disk
}

# Exabyte Tapestreamer
Storage {
 Name = Exabyte
 Address = fabriek-test      # Use a fully qualified name here
 SDPort = 9103
 Password = ""
 Device = Exabyte
 Media Type = 8mm
}


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


# Reasonable message delivery - send almost all to email address and to console
Messages {
 Name = Standard
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 = [EMAIL PROTECTED] = all, !skipped
 operator = [EMAIL PROTECTED] = mount
 console = all, !skipped, !saved
 append = "/var/bacula/working/log" = all, !skipped
}


# Pool definitions
Pool {
 Name = Daily
 Pool Type = Backup
 Recycle = yes                      # Bacula can automatically recycle volumes
 AutoPrune = yes                   # Prune expired volumes
 Volume Retention = 10 days        # Recycle in 10 days
 LabelFormat = "Daily"
}

Pool {
 Name = Weekly
 Use Volume Once = yes
 Pool Type = Backup
 Recycle = yes                      # Bacula can automatically recycle volumes
 AutoPrune = yes                   # Prune expired volumes
 Volume Retention = 30 days        # Recycle in 30 days
 LabelFormat = "Weekly"
}


Pool {
 Name = Monthly
 Use Volume Once = yes
 Pool Type = Backup
 Recycle = yes                      # Bacula can automatically recycle volumes
 AutoPrune = yes                   # Prune expired volumes
 Volume Retention = 365 days       # Recycle in 1 year
 LabelFormat = "Monthly"
}

Pool {
 Name = Catalog
 Pool Type = Backup
 Recycle = yes                      # Bacula can automatically recycle volumes
 AutoPrune = yes                    # Prune expired volumes
 Volume Retention = 6 days          # Recycle in 1 week
 LabelFormat = "Catalog"
}




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to