Hey list,
on monday I updated to bacula 2.2.6 (from 1.3.38) and started off with a clean
database. Apparently I didn't have to change a thing and was able to use the
old config (~15-20 clients with nightly backups to File Storage). Everything
went fine on Monday (using the Pool "Monday"), but yesterday the
backup did not work at all - the SD storage status did output something like:
Job XX wants Pool="Tuesday" but have Pool="Monday"..
I know the setup might be a bit strange but it works (or rather: worked) this
way quite fine for almost three years:
There is one disk mounted for each day:
/bacula/monday
/bacula/tuesday
/bacula/wednesday...
Each folder/disk represents its own pool - volumes are automatically
created/recycled with a max. size by bacula (5GB each, maximum of 46 Volumes)
with the scheme monday-001, monday-002 and so on.
The Bacula SD only has one Storage defined, namely /bacula/backup. This folder
contains some hundred pre-created symlinks:
lrwxrwxrwx 1 bacula bacula 16 Dec 10 2006 monday -> ../monday/monday
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0001 -> ../monday/monday-0001
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0002 -> ../monday/monday-0002
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0003 -> ../monday/monday-0003
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0004 -> ../monday/monday-0004
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0005 -> ../monday/monday-0005
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0006 -> ../monday/monday-0006
lrwxrwxrwx 1 bacula bacula 21 Dec 8 2006 monday-0007 -> ../monday/monday-0007
[...]
this is the SD definition:
Device {
Name = FileStorage
Media Type = File
Archive Device = /bacula/backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
these are the pools:
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
}
Pool {
Name = monday
Pool Type = Backup
Recycle = yes
Auto Prune = yes
Volume Retention = 6d
Volume Use Duration = 23 hours
Maximum Volume Bytes = 5368709120
Maximum Volumes = 46
Label Format = "montag-"
}
Pool {
Name = tuesday
PoolType = Backup
Recycle = yes
Auto Prune = yes
Volume Retention = 6d
Volume Use Duration = 23 hours
Maximum Volume Bytes = 5368709120
Maximum Volumes = 46
Label Format = "dienstag-"
}
[and so on for monday, tuesday, wednesday etc.]
the schedule definition is:
Schedule {
Name = "Daily"
Run = Level=Full Pool=monday Storage=File Monday at 20:00
Run = Level=Full Pool=tuesday Storage=File Tuesday at 20:00
Run = Level=Full Pool=wednesday Storage=File Wednesday at 20:00
Run = Level=Full Pool=thursday Storage=File Thursday at 20:00
Run = Level=Full Pool=friday Storage=File Friday at 20:00
Run = Level=Full Pool=saturday Storage=File Saturday at 20:00
}
the default job config is:
JobDefs {
Name = "DefaultJob"
Type = Backup
FileSet = "LFHS-V3-src"
Level = Full
Storage = File
Messages = Standard
Pool = Default
Priority = 10
Prune Jobs = yes
Prune Files = yes
Prune Volumes = yes
}
A sample Job definition is:
Job {
Name = "somehost.com"
JobDefs = "DefaultJob"
Client = someclient.com
Schedule = "Daily"
Write Bootstrap = "/var/lib/bacula/somehost.com.bsr"
FileSet = "LFHS-V3-src"
}
Mit freundlichen Grüßen / with kind regards
Rudolph Bott
--
Megabit Informationstechnik GmbH
Karstr.25 41068 Moenchengladbach Tel:02161/30898-0 Fax:-18
AG MG HRB 10141, GF: Dipl.-Ing. Thomas Tillig, Michael Benten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users