Hey folks!
I am trying to create a backup schema here. I am using FreeBSD with
external RAID'ed harddisks to backup to (file backup). The schedule
should be like this:
Monthly backup.
The weekly backup does full backups first monday a month at 06:00. I
want to have 12 past backups available. This should be pool "monthly"
with maximum of 12 files and a 365 retention period, after which the
"volumes" get recycled and overwritten.
Daily backup.
I want daily incremental backups everyday at 6:00 pm that increment from
the latest monthly backup volume. This should be pool "daily" with a
maximum of 31 files and a retention period of 31 days.
Hourly backup.
I want differential backups every hour that increment from the latest
daily backup. 24 max files.
So when I want to restore a full backup, the latest monthly backup is
taken, in addition to the latest daily backup and the current
backup-of-the-hour. What I explicitly do NOT want is full backups in
every pool. That is, only want full backups in monthly, incrementals in
daily and differential in hourlies.
Here is my currently (obviously not working) bacula-dir file.
The system worked with my old method of having one pool only (with 90
files max, 90 days retention, full backup on monday and every day
incremental). So I am excluding all other files except the director one.
-- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< --
# Main Director Definition
########################################################################
Director {
Name = xxx-dir
DIRport = 9101
QueryFile = "/usr/local/share/bacula/query.sql"
WorkingDirectory = "/usr/backup/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 10
Password = "xxx"
Messages = Daemon
FD Connect Timeout = 1
SD Connect Timeout = 1
}
# Backup Job Definitions
########################################################################
Job {
Name = "hourly backup"
client = xxx-fd
type = backup
Messages = Standard
storage = xxx-sd
pool = hourly
Level = Full
FileSet = "xxx"
Schedule = "hourly"
Write Bootstrap = "/usr/backup/bacula/xxx.bsr"
Priority = 10
Maximum Concurrent Jobs = 1
}
Job {
Name = "daily backup"
client = xxx-fd
type = backup
messages = Standard
storage = xxx-sd
pool = daily
Level = Incremental
FileSet = "xxx"
Schedule = "daily"
Write Bootstrap = "/usr/backup/bacula/xxx.bsr"
Priority = 10
Maximum Concurrent Jobs = 1
}
Job {
Name = "monthly backup"
client = xxx-fd
type = backup
messages = Standard
storage = xxx-sd
pool = weekly
Level = Differential
FileSet = "xxx"
Schedule = "monthly"
Write Bootstrap = "/usr/backup/bacula/xxx.bsr"
Priority = 10
Maximum Concurrent Jobs = 1
}
# FileSets
########################################################################
FileSet {
...
}
# Restoring
########################################################################
Job {
...
}
# Schedules
########################################################################
Schedule {
Name = "hourly"
Run = Level=Incremental hourly
}
Schedule {
Name = "daily"
Run = Level=Differential tue-sun at 6:00
}
Schedule {
Name = "monthly"
Run = Level=Full 1st at 6:00
}
# Clients
########################################################################
Client {
...
}
# Storage
########################################################################
Storage {
Name = xxx-sd
Address = 127.0.0.1
SDPort = 9103
Password = "xxx"
Device = Storage
Media Type = File
}
# Catalogues
########################################################################
Catalog {
...
}
# Messages
########################################################################
Messages {
...
}
# Pools
########################################################################
Pool {
Name = hourly
Pool Type = Backup
Maximum Volume Jobs = 1
Use Volume Once = yes
Catalog Files = yes
Recycle = yes
AutoPrune = yes
#Volume Retention = 1 day
Recycle Oldest Volume = yes
Label Format = hourly-
Maximum Volumes = 24
}
Pool {
Name = daily
Pool Type = Backup
Maximum Volume Jobs = 1
Use Volume Once = yes
Catalog Files = yes
Recycle = yes
AutoPrune = yes
Volume Retention = 31 days
Recycle Oldest Volume = yes
Label Format = daily-
Maximum Volumes = 31
}
Pool {
Name = monthly
Pool Type = Backup
Maximum Volume Jobs = 1
Use Volume Once = yes
Catalog Files = yes
Recycle = yes
AutoPrune = yes
Volume Retention = 365 days
Recycle Oldest Volume = yes
Label Format = weekly-
Maximum Volumes = 12
}
-- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< -- -- 8< --
Any help would be greatly appreciated!
-Christian.
--
Christian Reiss - email AT christian-reiss DOT de /"\ ASCII Ribbon
\ / Campaign
GPG Key: http://christian-reiss.de/pgp.txt X against HTML
Jabber: chris AT alpha-labs DOT net / \ in eMails
"It's better to reign in hell than to serve in heaven.",
John Milton, Paradise lost.
signature.asc
Description: OpenPGP digital signature
-------------------------------------------------------------------------
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
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|