Tom, could you please check your keyboard - the enter/return key is broken ;-)

Tom Morgan wrote:

OK I am surrendering ;-) this is what is happening to me. I have 6 tapes and need to back up 8 clients and 1 backupcatalog. I am doing a full backup on Friday's on 7 clients and diffs the rest of the week (excluding Sunday). The 8th client I am doing a full on Tuesday's and nothing else during the rest of the week (if someone needs to know why I can tell you). So what is happening now is that when a tape fills up it should automatically mount the next tape. This has not been the case I have been manually having to do this all along.

I assume you have an autochanger / autoloader / library?

Just set up the storage daemon and the director properly. You find the necessary information in the manual.

Now what I did was labeled the tapes before I began backing this network up. So now what I am running into is all the tapes are filled and I want to purge them. I have tinkered with the conf and have had no success to have this done automatically.

According to your configuration, the volumes should be purged after about one year, so what's wrong? More information is in the manual.


So what I have been doing is manually purging the tapes ( I am well aware of what this does and am ok with it, unless it is what is causing my problem which I will describe in a minute) then mounting them and going on with the backup. Well last week I ran into an issue of which I did post here where I was being told xxxxx volume doesnt not exsist when I would try to mount it. So what I ended up doing is deleting that from my database writing and eof

Well, I suggest you read the manual. I don't know what you deleted from the database, but...


and relabelling it with the same name it has prior to me deleting from db. In bconsole I would type list media and I would see all the volumes there (I did this when I was being told it couldnt find the volume when I tried to mount it)

...once a volume is deleted from the database it can't be listed anymore.

Can anyone help me with this or should I just start over from scratch? Even if I start over from scratch I will still need to prune purge these volumes. Thanks in advance. Oh I included by bacula-dir.conf file.

I seriously recommend reading the manual and working through the chapters on basic setup. If you don't want to do that yourself, I'm sure there is someone around whom you can pay to set up your backup system.


Sorry, but it seems as though you didn't actually read the manual, and understanding that is necessary to operate bacula.

Arno


------------------------------------------------------------------------

#
# 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.1 (26 November 2004) -- redhat 7.2
#
#  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 = drakul-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/usr/local//etc/query.sql"
  WorkingDirectory = "/usr/local//var/bacula/working"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 20
  Password = "ETER6PsKy8+39fEUE8qae2fMhVBpMPTSmcRZFQh+yTiQ"         # Console 
password
  Messages = Daemon
}

JobDefs {
Name = "drakul"
Type = Backup
Level = Incremental
Client = drakul-fd FileSet = "drakul"
Schedule = "WeeklyCycle"
Storage = DLT-7000
Messages = Standard
Pool = Default
Priority = 10
}


JobDefs {
  Name = "amin"
  Type = Backup
  Level = Incremental
  Client = "amin"
  FileSet = "amin"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Default
  Priority = 10
}

JobDefs {
  Name = "lenin"
  Type = Backup
  Level = Incremental
  Client = "lenin"
  FileSet = "lenin"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Default
  Priority = 10
}


JobDefs { Name = "trotsky" Type = Backup Level = Incremental Client = "trotsky" FileSet = "trotsky" Schedule = "WeeklyCycle" Storage = DLT-7000 Messages = Standard Pool = Default Priority = 10 }

JobDefs {
  Name = "mao"
  Type = Backup
  Level = Incremental
  Client = "mao"
  FileSet = "mao"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Default
  Priority = 10
}

JobDefs {
  Name = "fidel"
  Type = Backup
  Level = Incremental
  Client = "fidel"
  FileSet = "fidel"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Default
  Priority = 10
}

JobDefs {
  Name = "hella"
  Type = Backup
  Level = Incremental
  Client = "hella"
  FileSet = "hella"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Default
  Priority = 10
}






JobDefs { Name = "win2003" Type = Backup Level = Full Client = sauron3 FileSet = win2003 Schedule = "Win2003" Storage = DLT-7000 Messages = Standard Pool = Default # Spool data = yes Priority = 10 }


# # Define the main nightly save backup job # By default, this job will back up to disk in /tmp Job { Name = "drakul" JobDefs = "drakul" Write Bootstrap = "/usr/local//var/bacula/working/drakul.bsr" }

Job {
  Name = "amin"
  JobDefs = "amin"
  Write Bootstrap = "/usr/local//var/bacula/working/amin.bsr"
}

Job {
  Name = "lenin"
  JobDefs = "lenin"
  Write Bootstrap = "/usr/local//var/bacula/working/lenin.bsr"
}

Job {
  Name = "trotsky"
  JobDefs = "trotsky"
  Write Bootstrap = "/usr/local//var/bacula/working/trotsky.bsr"
}

Job {
  Name = "mao"
  JobDefs = "mao"
  Write Bootstrap = "/usr/local//var/bacula/working/mao.bsr"
}

Job {
  Name = "fidel"
  JobDefs = "fidel"
  Write Bootstrap = "/usr/local//var/bacula/working/fidel.bsr"
}

Job {
  Name = "hella"
  JobDefs = "hella"
  Write Bootstrap = "/usr/local//var/bacula/working/hella.bsr"
}

Job {
  Name = "sauron3"
  JobDefs = "win2003"
  Write Bootstrap = "/usr/local//var/bacula/working/sauron3.bsr"
}



# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "drakul"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/usr/local//etc/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/usr/local//etc/delete_catalog_backup"
  Write Bootstrap = "/usr/local//var/bacula/working/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

# Standard Restore template, to be changed by Console program
Job {
Name = "drakul_RestoreFiles"
Type = Restore
Client=drakul-fd FileSet="drakul" Storage = DLT-7000
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}


Job {
  Name = "amin_RestoreFiles"
  Type = Restore
  Client= amin
  FileSet="amin"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

Job {
  Name = "lenin_RestoreFiles"
  Type = Restore
  Client= lenin
  FileSet="lenin"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

Job {
  Name = "trotsky_RestoreFiles"
  Type = Restore
  Client= trotsky
  FileSet="trotsky"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

Job {
  Name = "mao_RestoreFiles"
  Type = Restore
  Client= mao
  FileSet="mao"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

Job {
  Name = "fidel_RestoreFiles"
  Type = Restore
  Client= fidel
  FileSet="fidel"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

Job {
  Name = "hella_RestoreFiles"
  Type = Restore
  Client= hella
  FileSet="hella"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

Job {
  Name = "RestoreFilesWindows"
  Type = Restore
  Client= sauron3
  FileSet="win2003"
  Storage = DLT-7000
  Pool = Default
  Messages = Standard
  Where = "c:/bacula/restores"
}




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

# # 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 = /var
File = /usr
File = /usr/local
}



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

FileSet {
  Name = "amin"
  Include {
    Options {
      signature = MD5
    }
    File = /
    File = /var
    File = /usr
    File = /usr/local
    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 } }

FileSet {
  Name = "lenin"
  Include {
    Options {
      signature = MD5
    }
    File = /
    File = /var
    File = /usr
    File = /usr/local
    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 } }


FileSet { Name = "trotsky" Include { Options { signature = MD5 } File = / File = /var File = /usr File = /usr/local File = /data }


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

FileSet {
  Name = "mao"
  Include {
    Options {
      signature = MD5
    }
    File = /
    File = /data1
  }


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

FileSet {
  Name = "fidel"
  Include {
    Options {
      signature = MD5
    }
    File = /
    File = /usr/local/apache
    File = /usr/local/HelixUniversalServer9
}


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

FileSet {
  Name = "hella"
  Include {
    Options {
      signature = MD5
    }
    File = /
    File = /var
    File = /usr
    File = /usr/local
    File = /local
  }


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

FileSet {
  Name = "win2003"
  Include {
    Options {
      signature = MD5
    }
    File = "c:/bacula"
    File = "c:/install"
    File = "d:/sauron2_backup.bkf"
}

Exclude {
# Most of these files are excluded not because we don't want
# them, but because Win2K won't allow them to be backed up
# except via proprietary Win32 API calls.
File = "c:/Documents and Settings/*/Application Data/*/Profiles/*/*/Cache/*"
File = "c:/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/[Uu][Ss][Rr][Cc][Ll][Aa][Ss][Ss].*"
File = "c:/Documents and Settings/*/[Nn][Tt][Uu][Ss][Ee][Rr].*"
File = "c:/Documents and Settings/*/Cookies/*"
File = "c:/Documents and Settings/*/Local Settings/History/*"
File = "c:/Documents and Settings/*/Local Settings/Temporary Internet Files/*"
File = "c:/Documents and Settings/*/Local Settings/Temp/*"
}
}


#
# 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 fri at 1:05
#  Run = Full wed at 1:05
  Run = Differential mon-thu at 1:05
  Run = Differential sat at 1:05
}

Schedule {
  Name = "Win2003"
  Run = Full tue at 3:05
}


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

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

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

Client {
  Name = amin
  Address = 10.250.0.17
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd"          # password 
for FileDaemon
  File Retention = 20 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = lenin
  Address = 10.250.0.40
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd"          # password 
for FileDaemon
  File Retention = 20 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


Client { Name = trotsky Address = 10.250.0.41 FDPort = 9102 Catalog = MyCatalog Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd" # password for FileDaemon File Retention = 20 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files }

Client {
  Name = mao
  Address = 10.250.0.15
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd"          # password 
for FileDaemon
  File Retention = 20 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = fidel
  Address = 10.250.0.14
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd"          # password 
for FileDaemon
  File Retention = 20 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = hella
  Address = 10.250.0.35
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd"          # password 
for FileDaemon
  File Retention = 20 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


Client { Name = sauron3 Address = 10.250.0.6 FDPort = 9102 Catalog = MyCatalog Password = "Zi9B/gCFxFqE2jAOjYPUzI8fz5Q9OZT5Iys7nOZ582Hd" # password for FileDaemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files }





# Definiton of file storage device
Storage {
  Name = DLT-7000
# Do not use "localhost" here
  Address = drakul                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "3/Vv1dvWMMWM1hbZaOa/a5mCg3AlRal58TsdtFJ1vYkI"
  Device = "Sun L280"
  Media Type = tape
}


# Definition of DDS tape storage device #Storage { # Name = DDS-4 # Do not use "localhost" here # Address = drakul # N.B. Use a fully qualified name here # SDPort = 9103 # Password = "3/Vv1dvWMMWM1hbZaOa/a5mCg3AlRal58TsdtFJ1vYkI" # password for Storage daemon # Device = DDS-4 # must be same as Device in Storage daemon # Media Type = DDS-4 # must be same as MediaType in Storage daemon #}

# Definition of 8mm tape storage device
#Storage {
#  Name = "8mmDrive"
#  Do not use "localhost" here
#  Address = drakul                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "3/Vv1dvWMMWM1hbZaOa/a5mCg3AlRal58TsdtFJ1vYkI"
#  Device = "Exabyte 8mm"
#  MediaType = "8mm"
#}


# 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 = "/usr/local//sbin/bsmtp -h smtp.synacor.com -f \"\(Bacula\) %r\" -s 
\"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/local//sbin/bsmtp -h smtp.synacor.com -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//var/bacula/working/log" = all, !skipped
}


# # Message delivery for daemon messages (no job). Messages { Name = Daemon mailcommand = "/usr/local//sbin/bsmtp -h smtp.synacor.com -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r" mail = [EMAIL PROTECTED] = all, !skipped console = all, !skipped, !saved append = "/usr/local//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
}

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


-- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de


------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to