bacula virtual changer minimal config

This commit is contained in:
Peter Reichart 2024-06-28 02:35:41 +02:00
parent d0d26c70d0
commit 338893a186
15 changed files with 26559 additions and 0 deletions

View File

@ -0,0 +1,44 @@
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
# To add an extra map using this mechanism you will need to add
# two configuration items - one /etc/auto.master.d/extra.autofs file
# (using the same line format as the auto.master file)
# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
# that is referred to by the extra.autofs file.
#
+dir:/etc/auto.master.d
#
# If you have fedfs set up and the related binaries, either
# built as part of autofs or installed from another package,
# uncomment this line to use the fedfs program map to access
# your fedfs mounts.
#/nfs4 /usr/sbin/fedfs-map-nfs4 nobind
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
#
#
/mnt/vchanger /etc/auto.vchanger --timeout=30
/mnt/cifs /etc/auto.smb --timeout=30
#
#eof

View File

@ -0,0 +1,15 @@
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#linux -ro,soft ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd

View File

@ -0,0 +1,54 @@
#!/bin/bash
# This file must be executable to work! chmod 755!
# Look at what a host is exporting to determine what we can mount.
# This is very simple, but it appears to work surprisingly well
key="$1"
# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
# choose one of the two lines below depending on the NFS version in your
# environment
[ -f /etc/default/autofs ] && . /etc/default/autofs
if [ -z "$MOUNT_NFS_DEFAULT_PROTOCOL" -o "$MOUNT_NFS_DEFAULT_PROTOCOL" == "3" ]; then
# Showmount comes in a number of names and varieties. "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it. "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"
for P in /bin /sbin /usr/bin /usr/sbin
do
for M in showmount kshowmount
do
if [ -x $P/$M ]
then
SMNT=$P/$M
break
fi
done
done
[ -x $SMNT ] || exit 1
# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"
$SHOWMOUNT | LC_ALL=C cut -d' ' -f1 | LC_ALL=C sort -u | \
awk -v key="$key" -v opts="$opts" -- '
BEGIN { ORS=""; first=1 }
{ if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
END { if (!first) print "\n"; else exit 1 }
' | sed 's/#/\\#/g'
opts="-fstype=nfs,hard,intr,nodev,nosuid"
else
# NFSv4
opts="-fstype=nfs4,hard,intr,nodev,nosuid,async"
echo "$opts $key:/"
fi

View File

@ -0,0 +1,83 @@
#!/bin/bash
# This file must be executable to work! chmod 755!
# Automagically mount CIFS shares in the network, similar to
# what autofs -hosts does for NFS.
# Put a line like the following in /etc/auto.master:
# /cifs /etc/auto.smb --timeout=300
# You'll be able to access Windows and Samba shares in your network
# under /cifs/host.domain/share
# "smbclient -L" is used to obtain a list of shares from the given host.
# In some environments, this requires valid credentials.
# This script knows 2 methods to obtain credentials:
# 1) if a credentials file (see mount.cifs(8)) is present
# under /etc/creds/$key, use it.
# 2) Otherwise, try to find a usable kerberos credentials cache
# for the uid of the user that was first to trigger the mount
# and use that.
# If both methods fail, the script will try to obtain the list
# of shares anonymously.
get_krb5_cache() {
cache=
uid=${UID}
for x in $(ls -d /run/user/$uid/krb5cc_* 2>/dev/null); do
if [ -d "$x" ] && klist -s DIR:"$x"; then
cache=DIR:$x
return
fi
done
if [ -f /tmp/krb5cc_$uid ] && klist -s /tmp/krb5cc_$uid; then
cache=/tmp/krb5cc_$uid
return
fi
}
key="$1"
opts="-fstype=cifs"
for P in /bin /sbin /usr/bin /usr/sbin
do
if [ -x $P/smbclient ]
then
SMBCLIENT=$P/smbclient
break
fi
done
[ -x $SMBCLIENT ] || exit 1
creds=/etc/creds/$key
if [ -f "$creds" ]; then
opts="$opts"',credentials='"$creds"
smbopts="-A $creds"
else
get_krb5_cache
if [ -n "$cache" ]; then
opts="$opts"',multiuser,cruid=$UID,sec=krb5i'
smbopts="-k"
export KRB5CCNAME=$cache
else
opts="$opts"',guest'
smbopts="-N"
fi
fi
$SMBCLIENT $smbopts -gL "$key" 2>/dev/null| awk -v "key=$key" -v "opts=$opts" -F '|' -- '
BEGIN { ORS=""; first=1 }
/Disk/ {
if (first)
print opts; first=0
dir = $2
loc = $2
# Enclose mount dir and location in quotes
print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
}
END { if (!first) print "\n"; else exit 1 }
'

View File

@ -0,0 +1,3 @@
# /etc/auto.vchanger
* -fstype=auto,rw,suid,dev,exec,auto,users,async :/dev/disk/by-uuid/&
# eof

View File

@ -0,0 +1,435 @@
#
# Define default options for autofs.
#
[ autofs ]
#
# master_map_name - default map name for the master map.
#
master_map_name = /etc/auto.master
#
# timeout - set the default mount timeout in seconds. The internal
# program default is 10 minutes, but the default installed
# configuration overrides this and sets the timeout to 5
# minutes to be consistent with earlier autofs releases.
#
timeout = 300
#
# master_wait - set the default maximum number of retries (actual
# iterations is half this, each is delayed by 2 seconds
# before retrying) waiting for the master map to become
# available if it cannot be read at program start
# (default 10, then continue). This can be longer
# if the map source itself waits for availability
# (such as sss).
#
#master_wait = 10
#
# negative_timeout - set the default negative timeout for
# failed mount attempts (default 60).
#
#negative_timeout = 60
#
# mount_verbose - use the -v flag when calling mount(8) and log some
# process information about the requestor and its
# parent.
#
#mount_verbose = no
#
# mount_wait - time to wait for a response from mount(8).
# Setting this timeout can cause problems when
# mount would otherwise wait for a server that
# is temporarily unavailable, such as when it's
# restarting. The default setting (-1) of waiting
# for mount(8) usually results in a wait of around
# 3 minutes.
#
#mount_wait = -1
#
# umount_wait - time to wait for a response from umount(8).
#
#umount_wait = 12
#
# browse_mode - maps are browsable by default.
#
browse_mode = no
#
# mount_nfs_default_protocol - set the default protocol that mount.nfs(8)
# uses when performing a mount. Autofs needs
# to know the default NFS protocol that
# mount.nfs(8) uses so it can do special case
# handling for its availability probe for
# different NFS protocols. Since we can't
# identify the default automatically we need
# to set it in our configuration.
#
#mount_nfs_default_protocol = 3
#
# append_options - append to global options instead of replace.
#
#append_options = yes
#
# logging - set default log level "none", "verbose" or "debug"
#
#logging = none
#
# force_standard_program_map_env - disable the use of the "AUTOFS_"
# prefix for standard environment variables when
# executing a program map. Since program maps
# are run as the privileged user this opens
# automount(8) to potential user privilege
# escalation when the program map is written
# in a language that can load components from,
# for example, a user home directory.
#
# force_standard_program_map_env = no
#
# use_mount_request_log_id - Set whether to use a mount request log
# id so that log entries for specific mount
# requests can be easily identified in logs
# that have multiple concurrent requests.
#
#use_mount_request_log_id = no
#
# Define base dn for map dn lookup.
#
# Define server URIs
#
# ldap_uri - space separated list of server uris of the form
# <proto>://<server>[/] where <proto> can be ldap
# or ldaps. The option can be given multiple times.
# Map entries that include a server name override
# this option.
#
# This configuration option can also be used to
# request autofs lookup SRV RRs for a domain of
# the form <proto>:///[<domain dn>]. Note that a
# trailing "/" is not allowed when using this form.
# If the domain dn is not specified the dns domain
# name (if any) is used to construct the domain dn
# for the SRV RR lookup. The server list returned
# from an SRV RR lookup is refreshed according to
# the minimum ttl found in the SRV RR records or
# after one hour, whichever is less.
#
#ldap_uri = ""
#
# ldap_timeout - timeout value for the synchronous API calls
# (default is LDAP library default).
#
#ldap_timeout = -1
#
# ldap_network_timeout - set the network response timeout (default 8).
#
#ldap_network_timeout = 8
#
# search_base - base dn to use for searching for map search dn.
# Multiple entries can be given and they are checked
# in the order they occur here.
#
#search_base = ""
#
# Define the LDAP schema to used for lookups
#
# If no schema is set autofs will check each of the schemas
# below in the order given to try and locate an appropriate
# basdn for lookups. If you want to minimize the number of
# queries to the server set the values here.
#
#map_object_class = nisMap
#entry_object_class = nisObject
#map_attribute = nisMapName
#entry_attribute = cn
#value_attribute= nisMapEntry
#
# Other common LDAP naming
#
#map_object_class = automountMap
#entry_object_class = automount
#map_attribute = ou
#entry_attribute = cn
#value_attribute= automountInformation
#
#map_object_class = automountMap
#entry_object_class = automount
#map_attribute = automountMapName
#entry_attribute = automountKey
#value_attribute= automountInformation
#
# auth_conf_file - set the default location for the SASL
# authentication configuration file.
#
#auth_conf_file = /etc/autofs_ldap_auth.conf
#
# map_hash_table_size - set the map cache hash table size.
# Should be a power of 2 with a ratio of
# close to 1:8 for acceptable performance
# with maps up to around 8000 entries.
# See autofs.conf(5) for more details.
#
#map_hash_table_size = 1024
#
# use_hostname_for_mounts - nfs mounts where the host name resolves
# to more than one IP address normally need
# to use the IP address to ensure a mount to
# a host that isn't responding isn't done.
# If that behaviour is not wanted then set
# this to "yes", default is "no".
#
#use_hostname_for_mounts = "no"
#
# disable_not_found_message - The original request to add this log message
# needed it to be unconditional. That produces, IMHO,
# unnecessary noise in the log so a configuration option
# has been added to provide the ability to turn it off.
# The default is "no" to maintain the current behaviour.
#
#disable_not_found_message = "no"
#
# use_ignore_mount_option - This option is used to enable the use of autofs
# pseudo option "disable". This option is used as a
# hint to user space that the mount entry should be
# ommitted from mount table listings. The default is
# "no" to avoid unexpected changes in behaviour and
# so is an opt-in setting.
#
#use_ignore_mount_option = no
#
# sss_master_map_wait - When sssd is starting up it can sometimes return
# "no such entry" for a short time until it has read
# in the LDAP map information. Internal default is 0
# (don't wait) or 10 if sss supports returning EHSTDOWN.
# If there is a problem with autofs not finding the
# master map at startup (when it should) then try setting
# this to 10 or more. If the sss library supports returning
# EHOSTDOWN when the provider is down then this value
# is how long to wait between retries reading the
# master map. When reading dependent maps or looking
# up a map key this value is multiplied by the number
# of retries that would be used when reading the master
# map. (Default, 0 or 10 if sss suppprts returning
# EHOSTDOWN).
#
#sss_master_map_wait = 0
#
# Options for the amd parser within autofs.
#
# amd configuration options that are aren't used, haven't been
# implemented or have different behaviour within autofs.
#
# A number of the amd configuration options are not used by autofs,
# some because they are not relevant within autofs, some because
# they are done differently in autofs and others that are not yet
# implemented.
#
# Since "mount_type" is always autofs (because there's no user space
# NFS server) the configuration entries relating to that aren't used.
# Also, server availability is done differently within autofs so the
# options that relate to the amd server monitoring sub-system are
# also not used.
#
# These options are mount_type, auto_attrcache, portmap_program,
# nfs_vers_ping, nfs_allow_any_interface, nfs_allow_insecure_port,
# nfs_proto, nfs_retransmit_counter, nfs_retransmit_counter_udp,
# nfs_retransmit_counter_tcp, nfs_retransmit_counter_toplvl,
# nfs_retry_interval, nfs_retry_interval_udp, nfs_retry_interval_tcp,
# nfs_retry_interval_toplvl and nfs_vers.
#
#
# Other options that are not used within the autofs implementation:
#
# log_file, truncate_log - autofs used either stderr when running in
# the foreground or sends its output to syslog so an alternate
# log file (or truncating the log) can't be used.
#
# print_pid - there's no corresponding option for this within autofs.
#
# use_tcpwrappers, show_statfs_entries - there's no user space NFS
# server to control access to so this option isn't relevant.
# The show_statfs_entries can't be implemented for the same
# reason.
#
# debug_mtab_file - there's no user space NFS server and autofs
# avoids using file based mtab whenever possible.
#
# sun_map_syntax - obviously, are provided by autofs itself.
#
# plock, show_statfs_entries, preferred_amq_port - not supported.
#
# ldap_cache_maxmem, ldap_cache_seconds - external ldap caching
# is not used by autofs.
#
# ldap_proto_version - autofs always attempts to use the highest
# available ldap protocol version.
#
# cache_duration, map_reload_interval, map_options - the map
# entry cache is continually updated and stale entries
# cleaned on re-load, which is done when map changes are
# detected so these configuration entries are not used
# by autofs.
#
# localhost_address - is not used within autofs. This
# configuration option was only used in the amd user
# space server code and is not relevant within autofs.
#
#
# Options that are handled differently within autofs:
#
# pid_file - must be given as a command line option on startup.
#
# print_version - program version and feature information is obtained
# by using the automount command line option "-V".
#
# debug_options, log_options - autofs has somewhat more limited
# logging and debug logging options. When the log_options
# options is encountered it is converted to the nearest
# matching autofs logging option. Since the configuration
# option debug_options would be handled the same way it
# is ignored.
#
# restart_mounts - has no sensible meaning within autofs because autofs
# always tries to re-connect to existing mounts. While this
# has its own set of problems not re-connecting to existing
# mounts always results in a non-functional automount tree if
# mounts were busy at the last shutdown (as is also the case
# with amd when using mount_type autofs).
#
# forced_unmounts - detaching mounts often causes serious problems
# for users of existing mounts. It is used by autofs in some
# cases, either at the explicit request of the user (with a
# command line or init option) and in some special cases during
# program operation but is avoided whenever possible.
#
#
# A number of configuration options are not yet implemented:
#
# fully_qualified_hosts - not yet implemented.
#
# unmount_on_exit - since autofs always tries to re-connect
# to mounts left mounted from a previous shutdown this
# is a sensible option to implement and that will be
# done.
#
# exec_map_timeout - a timeout is not currently used for
# for program maps, might be implemented.
#
# tag - the tag option is not implemented within autofs.
#
#
# Supported options:
#
# arch, karch, os, osver - these options default to what is returned
# from uname(2) and can be overridden if required.
#
# full_os - has no default and must be set in the configuration
# if used in maps.
#
# cluster - if not set defaults to the host domain name. This option
# corresponds to the HP_UX cluster name (according to the amd
# source) and is probably not used in Linux but is set anyway.
#
# vendor - has a default value of "unknown", it must be set in the
# configuration if used in maps.
#
# auto_dir - is the base name of the mount tree used for external
# mounts that are sometimes needed by amd maps. Its default
# value is "/a".
#
# map_type - specifies the autofs map source, such as file, nis,
# ldap etc. and has no default value set.
#
# map_defaults - is used to override /defaults entries within maps
# and can be used to provide different defaults on specific
# machines without having to modify centrally managed maps.
# It is empty by default.
#
# search_path - colon seperated paths to search for maps that
# are not specified as a full path.
#
# dismount_interval - is equivalent to the autofs timeout option. It
# is only possible to use this with type "auto" mounts due
# to the way the autofs kernel module performs expiry. It
# takes its default value from the autofs internal default
# of 600 seconds.
#
# browsable_dirs - make map keys visible in directory listings.
# Note that support for the "fullybrowsable" option cannot
# be added using the existing kernel to user space autofs
# implementation.
#
# autofs_use_lofs - if set to "yes" autofs will attempt to use bind
# mounts for type "link" entries when possible.
#
# nis_domain - allows setting of a domain name other than the system
# default.
#
# local_domain - is used to override (or set) the host domain name.
#
# normalize_hostnames - if set to "yes" then the contents of ${rhost}
# is translated in its official host name.
#
# domain_strip - if set to "yes" the domain name part of the host
# is stripped when normalizing hostnames. This can be useful
# when using of the same maps in a multiple domain environment.
#
# normalize_slashes - is set to "yes" by default and will collapse
# multiple unescaped occurrences of "/" to a single "/".
#
# selectors_in_defaults, selectors_on_default - has a default value
# of "no". If set to "yes" then any defaults entry will be
# checked for selectors to determine the values to be used.
# selectors_in_defaults is the preferred option to use.
#
# ldap_base - has no default value. It must be set to the base dn
# that is used for queries if ldap is to be used as a map
# source.
#
# ldap_hostports - has no default value set. It must be set to
# the URI of the LDAP server to be used for lookups when
# ldap is used a map source. It may contain a comma or
# space seperated list of LDAP URIs.
#
# hesiod_base - the base name used for hesiod map sources.
#
# Additional configuration options added:
#
# linux_ufs_mount_type - set the default system filesystem type that's
# used for mount type ufs. There's no simple way to determine
# what the system default filesystem is and am-utils needs to
# be continually updated to do this and can easily get it wrong
# anyway.
#
#
# Define global options for the amd parser within autofs.
#
[ amd ]
#
# Override the internal default with the same timeout that
# is used by the override in the autofs configuration, sanity
# only change.
#
dismount_interval = 300
#
# map_type = file
#
# Overriding this can cause autofs to use less resources because
# it will use symlinks instead of bind mounts in certain cases.
# You should ensure that the autofs kernel module you are using
# supports expiration of symlinks for best results (although this
# appears to work reasonably well most of the time without the
# update).
#
# autofs_use_lofs = yes
#
# Several configuration options can be set per mount point.
# In particulr map_type, map_name, map_defaults, search_path,
# browsable_dirs, dismount_interval and selectors_in_defaults
# (not all of which are currently implemented, see above).
#
# Also, if a section for an amd mount point is defined here
# it isn't necessary to specify the format in the corresponding
# master map entry and the format will be inherited for type
# "auto" mounts.
#
#[ /example/mount ]
#dismount_interval = 60
#map_type = nis

View File

@ -0,0 +1,199 @@
Director {
Name = "bacula-dir"
Messages = "Daemon"
DirSourceAddress = 192.168.75.18
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/run/bacula"
MaximumConcurrentJobs = 20
Password = "AqBDdsQIToKs5mLh4szqSk99gqLtGTWhB"
}
Client {
Name = "bacula-fd"
Address = "127.0.0.1"
FdPort = 9102
Password = "PBhBm7HlheYWqVaYv6zDCLpSAzVjSc_OB"
Catalog = "MyCatalog"
FileRetention = 5184000
JobRetention = 15552000
AutoPrune = yes
}
Storage {
Name = "vc0"
SdPort = 9103
Address = "127.0.0.1"
Password = "0FbHFYHuylTaTUB9p4ruim8RmBe8u9lmB"
Device = "virtchanger0"
MediaType = "File"
Autochanger = "vc0"
MaximumConcurrentJobs = 20
}
JobDefs {
Name = "DefaultJob"
Type = "Backup"
Level = "Incremental"
Messages = "Standard"
Storage = "vc0"
Pool = "VirtualChanger"
WriteBootstrap = "/var/lib/bacula/%c.bsr"
MaxWaitTime = 172800
Priority = 10
Accurate = yes
}
JobDefs {
Name = "RestoreJob"
Type = "Restore"
Messages = "Daemon"
}
Job {
Name = "BackupBacula"
Type = "Backup"
Level = "Incremental"
Storage = "intern"
Pool = "Intern"
Client = "bacula-fd"
Fileset = "Full Set"
JobDefs = "DefaultJob"
SpoolData = no
}
Job {
Name = "BackupCatalog"
Level = "Full"
Client = "bacula-fd"
Fileset = "Catalog"
Schedule = "Jeden 2. Tag"
JobDefs = "DefaultJob"
WriteBootstrap = "/var/lib/bacula/%n.bsr"
Runscript {
RunsWhen = "Before"
RunsOnClient = no
Command = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
}
Runscript {
RunsWhen = "After"
RunsOnClient = no
Command = "/etc/bacula/scripts/delete_catalog_backup"
}
Priority = 11
}
Job {
Name = "RestoreJob"
Type = "Restore"
Storage = "intern"
Pool = "Default"
Client = "bacula-fd"
Fileset = "Catalog"
JobDefs = "RestoreJob"
}
Catalog {
Name = "MyCatalog"
Address = "127.0.0.1"
Password = "bacula"
User = "bacula"
DbName = "bacula"
}
Schedule {
Name = "Daily_12-00h"
Run = at 12:00
}
Schedule {
Name = "Jeden 2. Tag"
Run = tue,thu,sat at 22:00
}
Schedule {
Name = "WeeklyCycle"
Run = fri at 22:00
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Level="Full" sat at 23:10
}
Schedule {
Name = "Yearly"
Run = at 12:00
}
Fileset {
Name = "Catalog"
Include {
File = "/var/lib/bacula/bacula.sql"
File = "/etc"
Options {
Signature = "Md5"
}
}
}
Fileset {
Name = "Full Set"
Include {
File = "/"
File = "/boot/"
Options {
Signature = "Md5"
}
}
Exclude {
File = "/var/lib/bacula"
File = "/mnt"
File = "/proc"
File = "/tmp"
File = "/sys"
File = "/.journal"
File = "/.fsck"
File = "/var/spool/vchanger"
File = "/intern"
}
}
Fileset {
Name = "WindowsClient_Userdata"
Include {
File = "C:/Users"
}
}
Pool {
Name = "Default"
PoolType = "Backup"
MaximumVolumes = 20
MaximumVolumeBytes = 1000000000000
VolumeRetention = 31536000
AutoPrune = yes
Recycle = yes
}
Pool {
Name = "VirtualChanger"
PoolType = "Backup"
LabelFormat = "BaculaVol"
PurgeOldestVolume = yes
RecycleOldestVolume = yes
MaximumVolumeBytes = 500000000000
VolumeRetention = 1209600
Storage = "vc0"
AutoPrune = yes
Recycle = yes
}
Pool {
Name = "Scratch"
PoolType = "Backup"
}
Messages {
Name = "Daemon"
MailCommand = "/usr/sbin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula daemon message\" %r"
Mail = root = All, !Debug, !Saved, !Skipped
Append = /var/log/bacula/bacula.log = All, !Debug, !Saved, !Skipped
Console = All, !Debug, !Saved, !Skipped
}
Messages {
Name = "Standard"
MailCommand = "/usr/sbin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula: %t %e of %c %l\" %r"
OperatorCommand = "/usr/sbin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula: Intervention needed for %j\" %r"
Mail = root = All, !Debug, !Saved, !Skipped
Append = /var/log/bacula/bacula.log = All, !Debug, !Saved, !Skipped
Console = All, !Debug, !Saved, !Skipped
Operator = root = Mount
Catalog = All, !Debug, !Saved
}
Console {
Name = "bacula-mon"
Password = "_7qJzdGPz2h3_BGeXg_qfTI-mGmOdIP4B"
CommandAcl = "status"
CommandAcl = ".status"
}

View File

@ -0,0 +1,49 @@
#
# Default Bacula File Daemon Configuration file
#
# For Bacula release 9.6.7 (10 December 2020) -- debian bookworm/sid
#
# There is not much to change here except perhaps the
# File daemon Name to
#
#
# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
#
# List Directors who are permitted to contact this File daemon
#
Director {
Name = bacula-dir
Password = "PBhBm7HlheYWqVaYv6zDCLpSAzVjSc_OB"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = bacula-mon
Password = "MxQb81ils2APPrjjzln2jj085hPhWI-JB"
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = bacula-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /run/bacula
Maximum Concurrent Jobs = 20
Plugin Directory = /usr/lib/bacula
FDAddress = 0.0.0.0
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = bacula-dir = all, !skipped, !restored
}

View File

@ -0,0 +1,69 @@
Director {
Name = "bacula-dir"
Password = "0FbHFYHuylTaTUB9p4ruim8RmBe8u9lmB"
}
Director {
Name = "bacula-mon"
Password = "8918u3WssJA-Dw_5suLTOJxKLq4W-vdaB"
Monitor = yes
}
Storage {
Name = "bacula-sd"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/run/bacula"
PluginDirectory = "/usr/lib/bacula"
MaximumConcurrentJobs = 20
}
Autochanger {
Name = "virtchanger0"
Device = "vc0-drive0"
Device = "vc0-drive1"
Device = "vc0-drive2"
ChangerDevice = "/etc/vchanger/vc0.conf"
ChangerCommand = "vchanger %c %o %S %a %d"
}
Device {
Name = "vc0-drive0"
MediaType = "File"
DeviceType = "File"
ArchiveDevice = "/var/spool/vchanger/vc0/0"
RemovableMedia = yes
RandomAccess = yes
LabelMedia = no
Autochanger = yes
MinimumBlockSize = 1048576
MaximumBlockSize = 4194304
MaximumConcurrentJobs = 2
}
Device {
Name = "vc0-drive1"
MediaType = "File"
DeviceType = "File"
ArchiveDevice = "/var/spool/vchanger/vc0/1"
RemovableMedia = yes
RandomAccess = yes
LabelMedia = no
Autochanger = yes
MinimumBlockSize = 1048576
MaximumBlockSize = 4194304
MaximumConcurrentJobs = 2
DriveIndex = 1
}
Device {
Name = "vc0-drive2"
MediaType = "File"
DeviceType = "File"
ArchiveDevice = "/var/spool/vchanger/vc0/2"
RemovableMedia = yes
RandomAccess = yes
LabelMedia = no
Autochanger = yes
MinimumBlockSize = 1048576
MaximumBlockSize = 4194304
MaximumConcurrentJobs = 2
DriveIndex = 2
}
Messages {
Name = "Standard"
Director = bacula-dir = All, !Debug, !Saved
}

View File

@ -0,0 +1,34 @@
#
# Bacula Tray Monitor Configuration File
#
# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
Monitor {
Name = bacula-mon
RefreshInterval = 30 seconds
}
Client {
Name = bacula-fd
Address = localhost
Port = 9102
Password = "MxQb81ils2APPrjjzln2jj085hPhWI-JB" # password for FileDaemon
Connect Timeout = 10
Monitor = yes
}
#Storage {
# Name = bacula-sd
# Address = localhost
# Port = 9103
# Password = "8918u3WssJA-Dw_5suLTOJxKLq4W-vdaB" # password for StorageDaemon
#}
#
#Director {
# Name = bacula-dir
# Address = localhost
# Port = 9101
# Password = "_7qJzdGPz2h3_BGeXg_qfTI-mGmOdIP4B" # password for the Directors
#}

View File

@ -0,0 +1,13 @@
#
# Bacula Administration Tool (bat) configuration file
#
# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
Director {
Name = bacula-dir
DIRport = 9101
address = localhost
Password = "AqBDdsQIToKs5mLh4szqSk99gqLtGTWhB"
}

View File

@ -0,0 +1,13 @@
#
# Bacula User Agent (or Console) Configuration File
#
# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
Director {
Name = bacula-dir
DIRport = 9101
address = localhost
Password = "AqBDdsQIToKs5mLh4szqSk99gqLtGTWhB"
}

View File

@ -0,0 +1,30 @@
# vc0
#
Storage Resource = "vc0"
Logfile = /var/spool/vchanger/log.txt
Log Level = 5
Work Dir = /var/spool/vchanger/vc0
User = bacula
Group = tape
# Mag0: OstrachNET1.1 8TB --------------- Set 1000 ---------
# Mag1: OstrachNET1.2 6TB
magazine = /mnt/vchanger/84a27cd5-b436-4475-9b7d-fa3a70cdd7ba
magazine = /mnt/vchanger/d23c21e1-1d78-4dc8-8ea7-ab09f111c02e
# -----------------------------------------------------------
# Mag2: OstrachNET2.1 8TB --------------- Set 2000 ---------
# Mag3: OstrachNET2.2 6TB
magazine = /mnt/vchanger/ba540667-f5c7-46d5-abf9-2eae58dcf757
magazine = /mnt/vchanger/3bf75e3e-659a-4c80-8c9a-764e58765b5b
# -----------------------------------------------------------
# Mag4: OstrachNET4000 8TB NTFS
magazine = /mnt/vchanger/70069BCF4EBCA2B8
# Mag5: OstrachNET5000 16TB ext4
magazine = /mnt/vchanger/02ee5061-3e24-4f34-8cb6-a3d3149786f2
# --- Befehle:
# vchange createvols --label="OstrachNET" 5 16 5000 # Magazin 5, 16 Volumes, StartNr. 5000
# Label schreiben: e2label /dev/sdx1 OstrachNet3.1
# Label lesen: e2label /dev/sdx1

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
max_used_slot=49