Great!!  This is exactly what I was looking for.  I had not looked at
the schedule resource carefully.  Thanks for all the help.

Sincerely,
Doug Penny

On 6/8/06, Scott Ruckh <[EMAIL PROTECTED]> wrote:
>
> --
>
>
> This is what you said Ryan Novosielski
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > This sort of thing goes in the Schedule{} definition, not the others.
> >
> >  ---- _  _ _  _ ___  _  _  _
> >  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
> >  |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
> >  \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
> >
> >
>
> I could be totally wrong.  I am by no means an expert at this stuff.  I
> have been using bacula for less then a couple of months.
>
> Here is my director file if interested.  I could be totally wrong, but I
> think it is close to what you are trying to accomplish.  My FULL,
> Incrermentals, Differentials, and Catalogs all go to different mount
> points, have their own labels, and have their own storage definition.
> This could be totally wrong, but that is what I am using.
>
> #
> # 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.8 (14 April 2006) -- redhat
> #
> #  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 = linux.fq.dn-dir
>   DIRport = 9101                # where we listen for UA connections
>   QueryFile = "/etc/bacula/query.sql"
>   WorkingDirectory = "/usr/local/bin/bacula/working"
>   PidDirectory = "/var/run/bacula"
>   Maximum Concurrent Jobs = 1
>   Password = "aPassword"         # Console password
>   Messages = Daemon
> }
>
> JobDefs {
>   Name = "DefaultWeeklyJob"
>   Type = Backup
>   Level = Full
>   Schedule = "WeeklyCycle"
>   Storage = FSD_FULL
>   Messages = Standard
>   Pool = FULL-Pool
>   Priority = 10
> }
>
>
> #
> # Define the main nightly save backup job
> # By default, this job will back up to disk in /tmp
> Job {
>   Name = "Linux Client FULL"
>   JobDefs = "DefaultWeeklyJob"
>   Client = aLinuxClient
>   FileSet = "Linux Client FULL"
>   ClientRunBeforeJob= "/usr/local/bin/mysqlbackup/mysqlbackup.pl"
>   Write Bootstrap = "/BACKUPS/Bootstrap/linux.fq.dn.bsr"
> }
>
> Job {
>   Name = "Windows Client FULL"
>   JobDefs = "DefaultWeeklyJob"
>   FileSet = "Windows Client FULL"
>   Client = aWindowsClient
>   ClientRunBeforeJob = "C:/bacula/bin/backup_systemstate.bat"
>   Write Bootstrap = "/BACKUPS/Bootstrap/windozeclient.bsr"
> }
>
>
> # Backup the catalog database (after the nightly save)
> Job {
>   Name = "BackupCatalog"
>   JobDefs = "DefaultWeeklyJob"
>   Client = aLinuxClient
>   Level = Full
>   FileSet="Catalog"
>   Storage= FSD_CTLG
>   Pool=CTLG-Pool
>   Schedule = "WeeklyCycleAfterBackup"
>   # This creates an ASCII copy of the catalog
>   RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula dbPassword"
>   # This deletes the copy of the catalog
>   RunAfterJob  = "/etc/bacula/delete_catalog_backup"
>   Write Bootstrap = "/BACKUPS/Bootstrap/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=aLinuxClient
>   FileSet="Linux Client FULL"
>   Storage = FSD_FULL
>   Pool = FULL-Pool
>   Messages = Standard
>   Where = /
> }
>
>
> # List of files to be backed up on server linux.fq.dn
> FileSet {
>   Name = "Linux Client FULL"
>
>   Include {
>     Options {
>       compression = GZIP
>       signature = MD5
>       wildfile = "/var/log/lastlog"
>       wildfile = "/.journal"
>       wildfile = "/.fsck"
>       wilddir = /ISO
>       wilddir = /proc
>       wilddir = /tmp
>       wilddir = /sys
>       wilddir = /dev
>       wilddir = /mnt
>       wilddir = /BACKUPS
>       wilddir = /var/spool/squid
>       wilddir = /var/lib/mysql
>       Exclude = yes
>     }
>     File = /
>     File = /boot
>     File = /home
>     File = /var
>   }
> }
>
> FileSet {
>   Name = "Windows Client FULL"
>   Enable VSS = yes
>   Include {
>     Options {
>       compression = GZIP
>       signature = MD5
>     }
>   File = C:/
>   File = D:/
>   }
>   Exclude {
>     File = pagefile.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 = Level=Full Storage=FSD_FULL FullPool=FULL-Pool 1st-5th sun at 02:05
>   Run = Level=Differential Storage=FSD_DIFF FullPool=FULL-Pool
> DifferentialPool=DIFF-Pool 2nd-5th sun at 02:05
>   Run = Level=Incremental Storage=FSD_INCR IncrementalPool=INCR-Pool
> FullPool=FULL-Pool mon-sat at 02:05
> }
>
> # This schedule does the catalog. It starts after the WeeklyCycle
> Schedule {
>   Name = "WeeklyCycleAfterBackup"
>   Run = Level=Full Full Storage=FSD_CTLG FullPool=CTLG-Pool sun-sat at 02:10
> }
>
> # This is the backup of the catalog
> FileSet {
>   Name = "Catalog"
>   Include {
>     Options {
>       signature = MD5
>     }
>     File = /usr/local/bin/bacula/working/bacula.sql
>   }
> }
>
> # Client (File Services) to backup
> Client {
>   Name = aLinuxClient
>   Address = linux.fq.dn
>   FDPort = 9102
>   Catalog = linux.fq.dn_catalog
>   Password = "password"          # password for FileDaemon
> }
>
> Client {
>   Name = aWindowsClient
>   Address = a.b.c.d
>   FDPort = 9102
>   Catalog = linux.fq.dn_catalog
>   Password = "aPassword"
> }
>
>
>
> # Definition of file storage device
> Storage {
>   Name = FSD_FULL
>   Address = linux.fq.dn                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "aPassword"
>   Device = SD_FULL
>   Media Type = File
> }
>
> Storage {
>   Name = FSD_INCR
>   Address = linux.fq.dn                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "aPassword"
>   Device = SD_INCR
>   Media Type = File
> }
>
>
> Storage {
>   Name = FSD_DIFF
>   Address = linux.fq.dn                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "aPassword"
>   Device = SD_DIFF
>   Media Type = File
> }
>
> Storage {
>   Name = FSD_CTLG
>   Address = linux.fq.dn                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "aPassword"
>   Device = SD_CTLG
>   Media Type = File
> }
>
>
> # Generic catalog service
> Catalog {
>   Name = linux.fq.dn_catalog
>   dbname = bacula; user = bacula; password = "dbPassword"
> }
>
> # 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 = "/usr/local/bin/bacula/bsmtp -h localhost:2525 -f
> \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
>   operatorcommand = "/usr/local/bin/bacula/bsmtp -h localhost:2525 -f
> \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
>   mail = [EMAIL PROTECTED] = all, !skipped
>   operator = [EMAIL PROTECTED] = 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 = "/usr/local/bin/bacula/working/log" = all, !skipped
> }
>
>
> #
> # Message delivery for daemon messages (no job).
> Messages {
>   Name = Daemon
>   mailcommand = "/usr/local/bin/bacula/bsmtp -h localhost:2525 -f
> \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
>   mail = [EMAIL PROTECTED] = all, !skipped
>   console = all, !skipped, !saved
>   append = "/usr/local/bin/bacula/working/log" = all, !skipped
> }
>
>
>
>
> # Default pool definition
> Pool {
>   Name = FULL-Pool
>   Pool Type = Backup
>   Recycle = yes
>   Recycle Oldest Volume = yes
>   AutoPrune = yes
>   Volume Retention = 1 months
>   Accept Any Volume = yes
>   Maximum Volume Jobs = 1
>   Maximum Volumes = 10
>   LabelFormat = "FULL-"
> }
>
> Pool {
>   Name = DIFF-Pool
>   Pool Type = Backup
>   Recycle = yes
>   Recycle Oldest Volume = yes
>   AutoPrune = yes
>   Volume Retention = 2 months
>   Accept Any Volume = yes
>   Maximum Volume Jobs = 2
>   Maximum Volumes = 9
>   LabelFormat = "DIFF-"
> }
>
> Pool
> {
>   Name = INCR-Pool
>   Pool Type = Backup
>   Recycle = yes
>   Recycle Oldest Volume = yes
>   AutoPrune = yes
>   Volume Retention = 1 months
>   Accept Any Volume = yes
>   Maximum Volume Jobs = 12
>   Maximum Volumes = 5
>   LabelFormat = "INCR-"
> }
>
> Pool
> {
>   Name = CTLG-Pool
>   Pool Type = Backup
>   Recycle = yes
>   Recycle Oldest Volume = yes
>   AutoPrune = yes
>   Volume Retention = 1 months
>   Accept Any Volume = yes
>   Maximum Volume Jobs = 7
>   Maximum Volumes = 5
>   LabelFormat = "CTLG-"
> }
>
>
> #
> # Restricted console used by tray-monitor to get the status of the director
> #
> Console {
>   Name = linux.fq.dn-mon
>   Password = "aPassword"
>   CommandACL = status, .status
> }
>


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to