Anyone?
-------- Original Message --------
Subject: [Bacula-devel] Why isn't bacula truncating/using these volumes?
Date: 12/17/2021 6:59 pm
From: Larry Rosenman <[email protected]>
To: [email protected]
-rw-r----- 1 bacula bacula 9430533578 Jun 23 00:33 LERCTR-0172
-rw-r----- 1 bacula bacula 9350872302 Jun 22 00:33 LERCTR-0186
-rw-r----- 1 bacula bacula 24318706519 Jun 21 04:14 LERCTR-0140
-rw-r----- 1 bacula bacula 225 Jul 5 2020 LERCTR-0123
-rw-r----- 1 bacula bacula 225 Jul 2 2020 LERCTR-0109
-rw-r----- 1 bacula bacula 225 Jul 1 2020 LERCTR-0088
-rw-r----- 1 bacula bacula 225 Jul 1 2020 LERCTR-0102
-rw-r----- 1 bacula bacula 225 Jul 1 2020 LERCTR-0090
-rw-r----- 1 bacula bacula 225 Jul 1 2020 LERCTR-0096
-rw-r----- 1 bacula bacula 98237778950 Mar 9 2020 LERCTR-0151
-rw-r----- 1 bacula bacula 58872699067 Mar 8 2020 LERCTR-0126
-rw-r----- 1 bacula bacula 49520971046 Mar 7 2020 LERCTR-0180
I can give:
1) configs (attached)
2) access to the machine
3) DB queries, etc (what do you need?)
I'm also not seeing any truncations since I updated to 11.
what can I supply to help?
I have a LONG thread on bacula-users, but they directed me here.
Thanks!
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: [email protected]
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
# 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 2.1.12 (04 June 2007) -- freebsd 7.0-CURRENT
#
# 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 = borg-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 = 6
Password = "wN3ln+1EvhspyAT9FQEU+BQK9n6K21CcYAMulaY7fJwH" # Console
password
Messages = Daemon
Heartbeat Interval = 360
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = borg-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Accurate = yes
Priority = 10
}
JobDefs {
Name = "DefaultJob-home"
Type = Backup
Level = Incremental
Client = borg-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File-Home
Messages = Standard
Pool = Default
Accurate = yes
Priority = 10
}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /tmp
Job {
Name = "borg"
JobDefs = "DefaultJob"
FileSet = "Full Set ZFS"
Write Bootstrap = "/var/db/bacula/borg.bsr"
}
Job {
Name = "r610"
JobDefs = "DefaultJob-home"
Client = r610-fd
FileSet = "Full Set ZFS"
Write Bootstrap = "/var/db/bacula/r610.bsr"
}
Job {
Name = "ntpserver"
JobDefs = "DefaultJob-home"
Client = ntp-server-fd
FileSet = "Full Set"
Write Bootstrap = "/var/db/bacula/ntp.bsr"
}
Job {
Name = "thebighonker"
Client = thebighonker-fd
JobDefs = "DefaultJob"
FileSet = "Full Set ZFS"
Write Bootstrap = "/var/db/bacula/thebighonker.bsr"
}
Job {
Name = "oldtbh"
Client = oldtbh.lerctr.org-fd
JobDefs = "DefaultJob"
FileSet = "Full Set ZFS"
Write Bootstrap = "/var/db/bacula/oldtbh.bsr"
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
RunAfterJob = "/usr/local/share/bacula/delete_catalog_backup"
Write Bootstrap = "/var/db/bacula/BackupCatalog.bsr"
Priority = 11 # run after main backup
RunScript {
RunsWhen=After
RunsOnClient=No
#Console = "purge volume action=truncate allpools storage=File"
Console = "prune expired volume yes"
Console = "truncate allpools Storage=File"
}
}
#
# 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=borg-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
compression = GZIP
OneFS = no
fstype = ext4
fstype = ext2
fstype = vfat
fstype = msdos
fstype = umsdos
fstype = zfs
fstype = hfs
fstype = xfs
fstype = ufs
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
File = /
#File = /usr
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /dev
File = /.journal
File = /.fsck
File = /Volumes
}
}
# List of files to be backed up
FileSet {
Name = "Full Set ZFS"
Include {
Options {
signature = MD5
compression = GZIP
OneFS = no
fstype = zfs
fstype = ufs
}
#
# 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 = /root
# File = /usr
# File = /usr/src
# File = /usr/home
# File = /usr/local
# File = /usr/obj
# File = /usr/ports
# File = /usr/ports/distfiles
# File = /usr/ports/packages
# File = /var
# File = /var/crash
# File = /var/db
# File = /var/db/boinc
# File = /var/db/pkg
# File = /var/log
# File = /var/mail
# File = /vault/backup/TBH
# File = /home
# File = /home/ler
# File = /home/abe
# File = /home/rduggan
# File = /tmp
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /dev
File = /nfs
File = /vault/backup/BACULA
File = /vault/backup/TBH
File = /var/tmp
File = /var/empty
File = /var/run
File = /.journal
File = /.fsck
File = /TimeMachine
File = /compat/linux/proc
File = /var/cache/ccache
File = /var/db/postgres/data11
}
}
#
# 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 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/db/bacula/bacula.sql
}
}
# Client (File Services) to backup
Client {
Name = borg-fd
Address = 127.0.0.1
FDPort = 9102
Catalog = MyCatalog
Password = "pFF0CRDnp7hnrurd57A70ldbFWnzNj0Pb3EkT0BMUvWL"
File Retention = 4 months # 30 days
Job Retention = 6 Months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Client (File Services) to backup
Client {
Name = r610-fd
Address = ler-r610.lerctr.org
FDPort = 9102
Catalog = MyCatalog
Password = "pFF0CRDnp7hnrurd57A70ldbFWnzNj0Pb3EkT0BMUvWL"
File Retention = 4 months # 30 days
Job Retention = 6 Months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = ntp-server-fd
Address = ntp-server.lerctr.org
FDPort = 9102
Catalog = MyCatalog
Password = "bQP9VByZIm6WGAqs9OnRFGPrSe3eNDx_a"
File Retention = 4 months # 30 days
Job Retention = 6 Months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
#
# Second Client (File Services) to backup
# You should change Name, Address, and Password before using
#
Client {
Name = thebighonker-fd
Address = thebighonker.lerctr.org
FDPort = 9102
Catalog = MyCatalog
Password = "Jo9orlB0ViDPkLtKN7ynGrLBDZYZcjdDn6H73UiuoY1y" # password
for FileDaemon 2
File Retention = 4 months # 30 days
Job Retention = 6 Months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = oldtbh.lerctr.org-fd
Address = oldtbh.lerctr.org
FDPort = 9102
Catalog = MyCatalog
Password = "Jo9orlB0ViDPkLtKN7ynGrLBDZYZcjdDn6H73UiuoY1y" # password
for FileDaemon 2
File Retention = 4 months # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Definition of file storage device
Storage {
Name = File
# Do not use "localhost" here
Address = borg.lerctr.org # N.B. Use a fully qualified name here
SDPort = 9103
Password = "yw3YodXSjFvO3XUrgYcW8lYicUL/zgikAnMhum1zBxmL"
Device = Virtual
Media Type = File
Heartbeat Interval = 360
Maximum Concurrent Jobs = 100
Autochanger = yes
}
Storage {
Name = File-Home
# Do not use "localhost" here
Address = borg-home.lerctr.org # N.B. Use a fully qualified name here
SDPort = 9103
Password = "yw3YodXSjFvO3XUrgYcW8lYicUL/zgikAnMhum1zBxmL"
Device = Virtual
Media Type = File
Heartbeat Interval = 360
Maximum Concurrent Jobs = 100
Autochanger = yes
}
# Definition of DDS tape storage device
#Storage {
# Name = DDS-4
# Do not use "localhost" here
# Address = borg # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "yw3YodXSjFvO3XUrgYcW8lYicUL/zgikAnMhum1zBxmL" #
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
# Autochanger = yes # enable for autochanger device
#}
# Definition of 8mm tape storage device
#Storage {
# Name = "8mmDrive"
# Do not use "localhost" here
# Address = borg # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "yw3YodXSjFvO3XUrgYcW8lYicUL/zgikAnMhum1zBxmL"
# Device = "Exabyte 8mm"
# MediaType = "8mm"
#}
# Definition of DVD storage device
#Storage {
# Name = "DVD"
# Do not use "localhost" here
# Address = borg # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "yw3YodXSjFvO3XUrgYcW8lYicUL/zgikAnMhum1zBxmL"
# Device = "DVD Writer"
# MediaType = "DVD"
#}
# 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.
# What this does is, it sets the email address that emails would display
# in the FROM field, which is by default the same email as they're being
# sent to. However, if you send email to more than one address, then
# you'll have to set the FROM address manually, to a single address.
# for example, a '[email protected]', is better since that tends to
# tell (most) people that its coming from an automated source.
#
mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/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
#
# 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 \"\(Bacula\) \<%r\>\" -s
\"Bacula daemon message\" %r"
mail = [email protected] = all, !skipped
console = all, !skipped, !saved
append = "/var/db/bacula/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 = 0
LabelFormat="LERCTR-"
#Use Volume Once = yes
#Maximum Volume Jobs = 4
Maximum Volume Bytes=100GB
Volume Use Duration = 12h
Action On Purge = Truncate
Recycle Oldest Volume = no
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = borg-mon
Password = "idD2Sjk6LrXoNFZ0x50zuovDdaLDfmztsbMJOAwKWXWd"
CommandACL = status, .status
}
# Default Bacula File Daemon Configuration file
#
# For Bacula release 2.1.12 (04 June 2007) -- freebsd 7.0-CURRENT
#
# There is not much to change here except perhaps the
# File daemon Name to
#
#
# List Directors who are permitted to contact this File daemon
#
Director {
Name = borg-dir
Password = "pFF0CRDnp7hnrurd57A70ldbFWnzNj0Pb3EkT0BMUvWL"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = borg-mon
Password = "HiCOt+rx8KdKXxOWNV0tU0ErH1+87FQcFPbaNGeeAYMC"
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = borg-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/db/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
Heartbeat Interval = 360
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = borg-dir = all, !skipped, !restored
}
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 2.1.12 (04 June 2007) -- freebsd 7.0-CURRENT
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # definition of myself
Name = borg-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/db/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
Heartbeat Interval = 360
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = borg-dir
Password = "yw3YodXSjFvO3XUrgYcW8lYicUL/zgikAnMhum1zBxmL"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = borg-mon
Password = "tkSs9kMu8OfRIBeKwmjrdRV2QzE6qEDWN8E4/VsjO+3Z"
Monitor = yes
}
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
Device {
Name = FileStorage
Media Type = File
Archive Device = /vault/backup/BACULA
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Drive Index = 0
Maximum Concurrent Jobs = 20;
}
Device {
Name = FileStorage-2
Media Type = File
Archive Device = /vault/backup/BACULA
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Drive Index = 1
Maximum Concurrent Jobs = 20;
}
Device {
Name = FileStorage-3
Media Type = File
Archive Device = /vault/backup/BACULA
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Drive Index = 2
Maximum Concurrent Jobs = 20;
}
Device {
Name = FileStorage-4
Media Type = File
Archive Device = /vault/backup/BACULA
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Drive Index = 3
Maximum Concurrent Jobs = 20;
}
Autochanger {
Name = Virtual
Changer Device = /dev/null
Changer Command = /dev/null
Device = FileStorage, FileStorage-2, FileStorage-3, FileStorage-4
}
#
# An autochanger device with two drives
#
#Autochanger {
# Name = Autochanger
# Device = Drive-1
# Device = Drive-2
# Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d"
# Changer Device = /dev/sg0
#}
#Device {
# Name = Drive-1 #
# Drive Index = 0
# Media Type = DLT-8000
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = yes
# #
# # Enable the Alert command only if you have the mtx package loaded
# # Note, apparently on some systems, tapeinfo resets the SCSI controller
# # thus if you turn this on, make sure it does not reset your SCSI
# # controller. I have never had any problems, and smartctl does
# # not seem to cause such problems.
# #
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#Device {
# Name = Drive-2 #
# Drive Index = 1
# Media Type = DLT-8000
# Archive Device = /dev/nst1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris tape drive
#
#Device {
# Name = DDS-4 #
# Media Type = DDS-4
# Archive Device = /dev/nrsa0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
## Changer Command = "/usr/local/share/bacula/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A FreeBSD tape drive
#
#Device {
# Name = DDS-4
# Description = "DDS-4 for FreeBSD"
# Media Type = DDS-4
# Archive Device = /dev/nsa1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
# Hardware End of Medium = no
# BSF at EOM = yes
# Backward Space Record = no
# Fast Forward Space File = no
# TWO EOF = yes
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A OnStream tape drive.
# You need the kernel osst driver 0.9.14 or later, and
# do "mt -f /dev/nosst0 defblksize 32768" once as root.
#
#Device {
# Name = OnStream
# Description = "OnStream drive on Linux"
# Media Type = OnStream
# Archive Device = /dev/nrsa0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
## The min/max blocksizes of 32768 are *required*
# Minimum Block Size = 32768
# Maximum Block Size = 32768
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A DVD device
#
#Device {
# Name = "DVD Writer"
# Media Type = DVD
# Device Type = DVD
# Archive Device = /dev/hdc
# LabelMedia = yes; # lets Bacula label unlabeled media
# Random Access = Yes;
# AutomaticMount = yes; # when device opened, read it
# RemovableMedia = yes;
# AlwaysOpen = no;
# MaximumPartSize = 800M;
# RequiresMount = yes;
# MountPoint = /mnt/cdrom;
# MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
# UnmountCommand = "/bin/umount %m";
# SpoolDirectory = /tmp/backup;
# WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"
# FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"
#}
#
# For OpenBSD OS >= 3.6
#
#Device {
# Name = DDS-3
# Media Type = DDS-3
# Archive Device = /dev/nrst0
# Use MTIOCGET= no
# BSF at EOM = yes
# TWO EOF = no
# AutomaticMount = yes;
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A very old Exabyte with no end of media detection
#
#Device {
# Name = "Exabyte 8mm"
# Media Type = "8mm"
# Archive Device = /dev/nrsa0
# Hardware end of medium = No;
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = Yes;
# RemovableMedia = yes;
# RandomAccess = no;
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = borg-dir = all
}
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel