Dan,
On Thu, Mar 08, 2018 at 09:19:31AM -0800, Dan wrote:
> On Tuesday, March 6, 2018 at 8:18:03 AM UTC-5, Russell Adams wrote:
> > I could use some direction for best practices to resolve when backups to
> > disk
> > fill the disk.
> Do you have any volumes that are marked as Purged orExpired?
None. I'm using a cron job we previously discussed to purge these because the
always incremental did not.
I have confirmed no purged volumes remain on disk.
> I would otherwise want to know more about your configuration before I provide
> any further advice. Deleting your volumes in order of (reverse) age can be
> dangerous in that you can delete your only full backup of something, putting a
> database or file system recovery at risk. If you provide details of your
> configuration I'm happy to share my thoughts.
This is where I've run into problems before. I delete something, and then
things don't work.
Below is portions of my configuration for reference from bconsole show all,
minus passwords.
======================================================================
Connecting to Director odin3:9101
1000 OK: odin3-dir Version: 16.2.4 (01 July 2016)
Enter a period to cancel a command.
version
odin3-dir Version: 16.2.4 (01 July 2016) x86_64-pc-linux-gnu debian Debian
GNU/Linux 8.0 (jessie) Debian_8.0 x86_64
show all
Director {
Name = "odin3-dir"
Messages = "Daemon"
QueryFile = "/usr/lib/bareos/scripts/query.sql"
MaximumConcurrentJobs = 10
Auditing = yes
}
Client {
Name = "odin3-fd"
Address = "odin3"
Catalog = "MyCatalog"
FileRetention = 1 months
JobRetention = 1 months
AutoPrune = yes
}
Client {
Name = "demo-pc-fd"
Address = "demo-pc"
Catalog = "MyCatalog"
FileRetention = 1 months
JobRetention = 1 months
AutoPrune = yes
}
Client {
Name = "luna-pc-fd"
Address = "luna-pc"
Catalog = "MyCatalog"
}
Client {
Name = "volibear-fd"
Address = "localhost"
Port = 19102
Catalog = "MyCatalog"
FileRetention = 1 months
JobRetention = 1 months
AutoPrune = yes
}
Client {
Name = "feralflare-pc-fd"
Address = "feralflare-pc"
Catalog = "MyCatalog"
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Messages = "Standard"
Storage = "File"
Pool = "AI-Incremental"
FullBackupPool = "AI-Consolidated"
Client = "odin3-fd"
FileSet = "SelfTest"
Schedule = "WeeklyCycle"
WriteBootstrap = "/var/lib/bareos/storage/%c_%n.bsr"
Accurate = yes
AlwaysIncremental = yes
AlwaysIncrementalJobRetention = 1 months
AlwaysIncrementalKeepNumber = 10
AlwaysIncrementalMaxFullAge = 1 months
}
Job {
Name = "Consolidate"
Type = Consolidate
Level = Incremental
Messages = "Standard"
Storage = "File"
Pool = "AI-Incremental"
FullBackupPool = "AI-Consolidated"
Client = "odin3-fd"
FileSet = "SelfTest"
Schedule = "WeeklyCycle"
WriteBootstrap = "/var/lib/bareos/storage/%c_%n.bsr"
Accurate = yes
MaxFullConsolidations = 4
}
Job {
Name = "BackupCatalog"
Level = Full
FileSet = "Catalog"
Schedule = "WeeklyCycleAfterBackup"
JobDefs = "DefaultJob"
Priority = 11
run before job = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
run after job = "/usr/lib/bareos/scripts/delete_catalog_backup"
}
Job {
Name = "RestoreFiles"
Type = Restore
Messages = "Standard"
Storage = "File"
Pool = "AI-Incremental"
Client = "odin3-fd"
FileSet = "SelfTest"
Where = "/tmp/bareos-restores"
}
Job {
Name = "odin3-job"
Client = "odin3-fd"
FileSet = "odin3Files"
JobDefs = "DefaultJob"
}
Job {
Name = "demo-pc-job"
Client = "demo-pc-fd"
FileSet = "WindowsUsersOnly"
JobDefs = "DefaultJob"
}
Job {
Name = "luna-pc-job"
Client = "luna-pc-fd"
FileSet = "WindowsUsersOnly"
JobDefs = "DefaultJob"
}
Job {
Name = "volibear-job"
Client = "volibear-fd"
FileSet = "volibearFiles"
JobDefs = "DefaultJob"
}
Job {
Name = "feralflare-pc-job"
Client = "feralflare-pc-fd"
FileSet = "WindowsUsersOnly"
JobDefs = "DefaultJob"
}
Storage {
Name = "File"
Address = "odin3"
Device = "FileStorage1","FileStorage2","FileStorage3","FileStorage4"
MediaType = "File"
MaximumConcurrentJobs = 4
}
Catalog {
Name = "MyCatalog"
DbUser = "bareos"
DbName = "bareos"
DbDriver = "postgresql"
MultipleConnections = no
}
Schedule {
Name = "WeeklyCycle"
run = Full 1st Sat at 01:00
run = Differential 2nd-5th Sat at 01:00
run = Incremental Mon-Fri at 01:00
}
Schedule {
Name = "WeeklyCycleAfterBackup"
run = Full Mon-Fri at 01:10
}
FileSet {
Name = "Catalog"
Include {
Options {
Compression = GZIP6
Signature = MD5
}
File = "/var/lib/bareos/bareos.sql"
File = "/etc/bareos"
}
}
FileSet {
Name = "SelfTest"
Include {
Options {
Signature = MD5
}
File = "/usr/sbin"
}
}
FileSet {
Name = "WindowsUsersOnly"
Include {
Options {
Signature = MD5
Compression = GZIP6
}
File = "C:/Users"
}
}
FileSet {
Name = "odin3Files"
Include {
Options {
Signature = MD5
Compression = GZIP6
}
File = "|/etc/bareos/localmounts.sh"
}
Exclude {
File = "/media"
File = "/mnt"
File = "/proc"
File = "/run"
File = "/sys"
File = "/tmp"
File = "/old"
File = "Gw2.dat"
File = "/home/*/games"
File = "/home/*/.games_unionfs"
}
}
FileSet {
Name = "volibearFiles"
Include {
Options {
Signature = MD5
Compression = GZIP6
}
File = "/"
File = "/usr"
File = "/var"
File = "/home"
File = "/home/adamsrl/Maildir"
File = "/home/adamsrl/.VirtualBox"
File = "/home/adamsrl/Archive"
}
Exclude {
File = "/dev"
File = "/home/adamsrl/Scratch"
File = "/media"
File = "/mnt"
File = "/proc"
File = "/run"
File = "/sys"
File = "/tmp"
}
}
Pool {
Name = "Scratch"
PoolType = Backup
LabelType = "bareos"
}
Pool {
Name = "AI-Incremental"
PoolType = Backup
LabelFormat = "AI-Incremental-"
LabelType = "bareos"
ActionOnPurge = Truncate
RecycleOldestVolume = yes
MaximumVolumeBytes = 5 g
VolumeRetention = 1 months
VolumeUseDuration = 23 hours
NextPool = "AI-Consolidated"
RecyclePool = "AI-Incremental"
}
Pool {
Name = "AI-Consolidated"
PoolType = Backup
LabelFormat = "AI-Consolidated-"
LabelType = "bareos"
ActionOnPurge = Truncate
RecycleOldestVolume = yes
MaximumVolumeBytes = 5 g
VolumeRetention = 1 months
VolumeUseDuration = 23 hours
NextPool = "AI-Longterm"
Storage = "File"
RecyclePool = "AI-Incremental"
}
Pool {
Name = "AI-Longterm"
PoolType = Backup
LabelFormat = "AI-Longterm-"
LabelType = "bareos"
RecycleOldestVolume = yes
MaximumVolumeBytes = 5 g
VolumeRetention = 10 years
VolumeUseDuration = 23 hours
Storage = "File"
RecyclePool = "AI-Incremental"
}
======================================================================
------------------------------------------------------------------
Russell Adams [email protected]
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.