bei meinem Testlauf mit Bacula Version 5.2 habe ich Probleme, die Volume Retention zum laufen zu bekommen.
Es ist eine Retension von 1ner Stunde eingestellt.
Code: Alles auswählen
#+++++++++++++++++ Standard Pool
Pool {
Name = File
Use Volume Once = yes
Pool Type = Backup
LabelFormat = "File"
AutoPrune = yes
VolumeRetention = 1h
Recycle = yes
}
Code: Alles auswählen
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Full
# Level = Incremental
Client = bacula-fd
# FileSet = "Full Set"
FileSet = "fileset-bacula-fd"
# Schedule = "WeeklyCycle"
Schedule = "Schedule-bacula-fd"
Storage = File
Messages = Standard
Pool = File
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
#+++++++++++++++++++++++++++++------------ Bacula Eigensicherung
Job {
#Name = "BackupClient1"
Name = job-bacula-server
JobDefs = "DefaultJob"
}
Die Sicherung wird auf die lokale Festplatte geschrieben.
Code: Alles auswählen
4 drwxr-xr-x 2 bacula disk 4096 Mai 25 19:35 bacula-storage
Code: Alles auswählen
Schedule {
Name = "Schedule-bacula-fd"
# Run = Full 1st sun at 23:05
#jede Stunden
#Run = Full hourly
#--Every 10 minutes:
Run = Level=Full hourly at 0:05
Run = Level=Full hourly at 0:15
Run = Level=Full hourly at 0:25
Run = Level=Full hourly at 0:35
Run = Level=Full hourly at 0:45
Run = Level=Full hourly at 0:55
}
Geplant ist eine Vollsicherung für eine Woche, am Samstag soll die Volume Retention greifen.
Leider bekomme ich das nicht hin. Hat hier jemand auch Bacula im Einsatzt und die VolumeRetention am laufen?
Code: Alles auswählen
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 14 | jochen | Used | 1 | 36,763,903 | 0 | 3,600 | 1 | 0 | 0 | File | 2014-05-26 06:15:08 |
Code: Alles auswählen
*llist volume=jochen
MediaId: 14
VolumeName: jochen
Slot: 0
PoolId: 2
MediaType: File
FirstWritten: 2014-05-26 06:15:04
LastWritten: 2014-05-26 06:15:08
LabelDate: 2014-05-26 06:15:03
VolJobs: 1
VolFiles: 0
VolBlocks: 570
VolMounts: 6
VolBytes: 36,763,903
VolErrors: 0
VolWrites: 3,426
VolCapacityBytes: 0
VolStatus: Used
Enabled: 1
Recycle: 1
VolRetention: 3,600
VolUseDuration: 0
MaxVolJobs: 0
MaxVolFiles: 0
MaxVolBytes: 0
InChanger: 0
EndFile: 0
EndBlock: 36,763,902
VolParts: 0
LabelType: 0
StorageId: 1
DeviceId: 0
LocationId: 0
RecycleCount: 5
InitialWrite: 0000-00-00 00:00:00
ScratchPoolId: 0
RecyclePoolId: 0
Comment: NULL
Code: Alles auswählen
*show pool=File
Pool: name=File PoolType=Backup
use_cat=1 use_once=1 cat_files=1
max_vols=0 auto_prune=1 VolRetention=1 hour
VolUse=0 secs recycle=1 LabelFormat=File
CleaningPrefix=*Nichts* LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
Da feheln meiner Meinung nach Beispiele.!