Hello,
On 15.11.2005 19:42, Dave wrote:
Hello,
I've got a fresh install of 1.38.0 on FreeBSD6. So far backup jobs
and restores to files and tapes work fine. One question, when defining a
machine in the client resource is it better to use an IP or a dns name?
I'm going to be getting in to backing up remote clients which is why i'm
asking.
Depends. Especially with different views of the DNS namespace, an IP
address might be more reliable. If you use dynamic IPs, a name is the
better solution.
This gets really funny with diferent DNS namespaces on two sides of a
firewall, where you want to use only one SD ;-)
I was wondering if someone could check out my director config, below,
and tell me if it needs any optimization or could be condensed?
That would be much easier if we knew what you want to achieve... apart
from that, simply trying it and, if any remain, posting questions is
more likely to get help. From me, at least, and currentyl.
I'd like
to get it working before i get in to dvd-writing, has anyone tried it
with the dvd+rw-tools port and 1.38.0,
Not with FreeBSD, but using Linux I could observe a steady improvement
in DVD writing. Currently, I'd consider it stable and worth a test in a
production system. I wouldn't rely on DVD backups as much as I do on
tape backups, but there are many reasons for that.
and encrypted communications
between both internal network and external internet machines i want to
back up, if anyone has any configs for that i'd like to hear from you as
well. I'll write back with any sample files i come up with and firewall
rules, i use pf, Kern mentioned he wanted to have some for the manual.
Good luck Kern on your sergery.
Thanks.
Dave.
Some comments included below.
Director { # define myself
Name = zeus-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/usr/local/share/bacula/query.sql"
WorkingDirectory = "/var/db/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "baculapassword1"
Messages = Daemon
}
# jobs #################################################################
# Backup Job Template - Change with console program
Job {
Name = "Manual Backup"
Type = Backup
Level = Full
Client = zeus-fd
FileSet = "zeus_full"
Storage = File
Messages = Standard
Pool = Default
Write Bootstrap = "/var/db/bacula/zeus.bsr"
For manual operation, use a different bsr file so you don't
accidentailly overwrite what you might need later for real zeus jobs.
The following jobs could be defined easier with a default job.
}
...
FileSet {
Name = "satellite_full"
Include {
options {
Compression=GZIP9
Signature=SHA1
}
File = c:/
}
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.
Have a look at the VSS support for windows; turning VSS on should allow
to back up all these files, and most of them even in a usable state. I
hope :-)
File = "/Documents and Settings/*/Application Data/*/Profiles/*/*/Cache/*"
File = "/Documents and Settings/*/Local Settings/Application
Data/Microsoft/Windows/[Uu][Ss][Rr][Cc][Ll][Aa][Ss][Ss].*"
You can use an option to ignore case in file names, IIRC.
File = "/Documents and Settings/*/[Nn][Tt][Uu][Ss][Ee][Rr].*"
...
File = "/WINNT/Temp/*"
File = "/temp/*"
File = "/tmp/*"
File = "/pagefile.sys"
You really don't want these. Most of the time, at least.
}
}
FileSet {
Name = "titan_full"
I have the impression I have already seen this fileset.
And the next one. Define it only once.
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
options {
Compression=GZIP9
Signature=SHA1
}
File = /var/db/bacula/bacula.sql
}
}
# schedules ############################################################
Schedule {
Name = "sat_fdddddd"
Run = Full sat at 11:00
Run = Differential sun-fri at 12:00
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 3:30
}
# Client (File Services) to backup
Client {
Name = zeus-fd
Address = 192.168.0.3
FDPort = 9102
Catalog = MyCatalog
Password = "baculapassword1" # password for FileDaemon
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = wserv-fd
Address = 192.168.0.4
FDPort = 9102
Catalog = MyCatalog
Password = "baculapassword1" # password for FileDaemon
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = satellite-fd
Address = 192.168.0.2
FDPort = 9102
Catalog = MyCatalog
Password = "baculapassword1" # password for FileDaemon
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = titan-fd
Address = 192.168.0.1
FDPort = 9102
Catalog = MyCatalog
Password = "baculapassword1" # password for FileDaemon
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = guardian-fd
Address = 192.168.0.254
FDPort = 9102
Catalog = MyCatalog
Password = "baculapassword1" # password for FileDaemon
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
# storage ##############################################################
# Definition of file storage device
Storage {
Name = File
Address = 192.168.0.3 # N.B. Use a fully qualified name
here
SDPort = 9103
Password = "baculapassword1"
Device = FileStorage
Media Type = File
}
# Definition of Quantum DLT4000 Tape Storage Device
Storage {
Name = "Quantum DLT4000"
Address = 192.168.0.3 # N.B. Use a fully qualified
name here
SDPort = 9103
Password = "baculapassword1" # password for Storage daemon
Device = "Quantum DLT4000" # must be same as in the storage daemon
Media Type = DLT # must be same as MediaType in
Storage daemon
}
# Definition of DVD storage device
Storage {
Name = "DVD"
# Do not use "localhost" here
Address = zeus # N.B. Use a fully qualified name here
SDPort = 9103
Password = "baculapassword1"
Device = "DVD Writer"
MediaType = "DVD"
}
# catalogs #############################################################
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = ""
}
# messages #############################################################
# 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 localhost -f
\"\([EMAIL PROTECTED]) %r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f
\"\([EMAIL PROTECTED]) %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 = "/var/db/bacula/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/local/sbin/bsmtp -h localhost -f
\"\([EMAIL PROTECTED]) %r\" -s \"Bacula daemon message\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
console = all, !skipped, !saved
append = "/var/db/bacula/log" = all, !skipped
}
# pools ################################################################
# 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
Accept Any Volume = yes # write on any volume in the pool
LabelFormat = "TAPE-"
}
Pool {
Name = FilePool
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
Volume Use Duration = 7 days
LabelFormat = "hdd_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}
pool {
Name = zeus_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
Volume Use Duration = 7 days
LabelFormat = "zeus_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}
Using disk files, you should limit the amount of space the pool can consume.
Arno
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users