Sziasztok!
Van egy bacula, ami folyamatosan Full backupot csinál az inkrementális helyett, pedig úgy van beállítva a rendszer h. heti egy full, majd utána inkrementális.
Már áttúrtam egy halom dolgot, állítottam h. mit figyeljen, mikor változik egy fájl, mikor nem.
A helyzet a köv:
rsnapshot csinál egy backupot a backup szerverre, aminek a .sync könyvtárából kellene készüljön egy full, majd 6 inkrementális mentés. Ezzel szemben a bacula folyamatosan full mentést csinál.
bacula-dir.conf
Director { # define myself
Name = backup-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "pw" # Console password
Messages = Daemon
DirAddress = 127.0.0.1
}
JobDefs {
Name = "WeeklyIncrementalDef"
Type = Backup
Level = Incremental
Client = backup-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = Ultrium
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Job {
Name = "WeeklyIncremental"
JobDefs = "WeeklyIncrementalDef"
}
Job {
Name = "RestoreFiles"
Type = Restore
Client=backup-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /srv/bacula-restores
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
Verify = pin5
}
File = /srv/backup/libra/.sync/
File = /srv/backup/fs-mail/.sync/
}
}
Schedule {
Name = "WeeklyCycle"
Run = Level=Full sun at 2:05
Run = Level=Incremental mon-sat at 2:05
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
}
}
Client {
Name = backup-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = "pw" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Storage {
Name = File
Address = localhost # N.B. Use a fully qualified name here
SDPort = 9103
Password = "pw"
Device = FileStorage
Media Type = File
}
Storage {
Name = Ultrium
Address = localhost # N.B. Use a fully qualified name here
SDPort = 9103
Password = "pw" # password for Storage daemon
Device = LTO-3 # must be same as Device in Storage daemon
Media Type = LTO-3 # must be same as MediaType in Storage daemon
Autochanger = no # enable for autochanger device
}
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = ""; dbpassword = ""
}
Messages {
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \\" -s \"Bacula: Intervention needed for %j\" %r"
mail = zoltan.kiss at ss.hu = all, !skipped
operator = zoltan.kiss at ss.hu = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 8 days # one year
Maximum Volumes = 15
Purge Oldest Volume = Yes
}
Console {
Name = backup-mon
Password = "pw"
CommandACL = status, .status
}
Elképzelhető h. én bénáztam el valamit, csak már fogalmam nincs h. mit. A fájlok a stat szerint nem változnak (mtime, atime, stb.).
Köszi a segítséget!
Zoli