Am Montag, 7. September 2015 07:47:51 UTC+2 schrieb Bruno Friedmann: > On Sunday 06 September 2015 10.40:49 Ludwig BaLu wrote: > > Am Sonntag, 6. September 2015 10:13:34 UTC+2 schrieb Bruno Friedmann: > > > On Saturday 05 September 2015 02.59:59 Ludwig BaLu wrote: > > > > Hi, > > > > > > > > I am very happy about bareos. It is very nice to configure and awesome > > > > with usabillity. But there are some things, I couldn't understand. > > > > > > > > For my setup, I would like to backup all my machines. Every week a full > > > > backup and every day incremental. For this setup, my full backups > > > > should not be deleted for 1 month, but my incremental should be deleted > > > > after 1 week. > > > > > > > > Here are my configs > > > > > > > > # > > > > # Full Pool definition > > > > # > > > > Pool { > > > > Name = Full > > > > Pool Type = Backup > > > > Recycle = yes # Bareos can automatically > > > > recycle Volumes > > > > AutoPrune = yes # Prune expired volumes > > > > Volume Retention = 1 month # How long should the Full > > > > Backups be kept? (#06) > > > > Label Format = "Full-" # Volumes will be labeled > > > > "Full-<volume-id>" > > > > } > > > > > > > > Pool { > > > > Name = Incremental > > > > Pool Type = Backup > > > > Recycle = yes # Bareos can automatically > > > > recycle Volumes > > > > AutoPrune = yes # Prune expired volumes > > > > Label Format = "Incremental-" # Volumes will be labeled > > > > "Incremental-<volume-id>" > > > > Volume Retention = 7 days # How long should the Full Backups > > > > be kept? (#06) > > > > #Maximum Volumes = 32 # Limit number of Volumes in Pool > > > > #Maximum Volume Jobs = 10 > > > > #Volume Retention = 7d # How long should the > > > > Incremental Backups be kept? (#12) > > > > #Maximum Volume Bytes = 1G # Limit Volume size to something > > > > reasonable > > > > } > > > > > > > > Schedule { > > > > Name = "WeeklyCycle" > > > > Run = Level=Full Pool=Full on 1st at 2:00 # (#04) > > > > Run = Level=Incremental Pool=Incremental on 2-31 at 02:00 > > > > # (#10) > > > > } > > > > > > > > Now I have over 100 volumes in my folder. But in my process, there > > > > should be max 8 for full and 6 or 7 for incremental. Every volume is in > > > > state 'Used', but there should be 'pruned', shouldn it? > > > > > > > > What did I wrong in my configuration? Can anyone give me a hint for > > > > this? > > > > > > > > Thank you very much, > > > > Ludwig > > > > > > > > > > > > > > If you want to run a full each week then a day should be inserted here > > > > Run = Level=Full Pool=Full on 1st at 2:00 # (#04) > > > > > > Run = Level=Full Pool=Full on sun at 2:00 # (#04) > > > > > > Then every sunday at 2 (I would avoid the 2-3 range due to DST) a full is > > > run. > > > > > > As advise, I would always have at least 2 full backups, if for any > > > reasons the > > > last run failed you still have one. > > > > > > > > > > Hi Bruno, > > > > thank you for your answer and for your suggestions. You are right, but how > > can I avoid, that bareos uses so much volumes? It does not prune the used > > volumes. All of my harddisks are running out of space, because alle volumes > > are in state 'used'. > > > > Can you advise, what to do? > > > > Thanks very much, > > Ludwig > > > > > > If your volume are not purged then you have another problem somewhere. > Typically if you change the pool retention time afterward, the first volumes > there > need to be adjusted to have their time aligned with the new retention. > > The purge and retention system works once mastered, but without a bit more of > your > configuration it will be hard to guess for us. > list media etc ... > > -- > > Bruno Friedmann > Ioda-Net Sàrl www.ioda-net.ch > > openSUSE Member & Board, fsfe fellowship > GPG KEY : D5C9B751C4653227 > irc: tigerfoot
Hi Bruno, yes but I don't know, where to search. What I have found is a problem with the "Use Once" directive. If a add this to my pool definition, the storage is blocked and new volumes aren't created. Here is one Client configured in my system: ################## # Bareos Dir ################## Client { Name = franky-fd Address = 1.2.3.4 Password = "{secretpw}" # password for FileDaemon FDPort = 9102 } Job { Name = "franky-ink" JobDefs = "DefaultJob-franky" Level = Incremental Client = franky-fd FileSet = "franky" # selftest fileset (#13) } JobDefs { Name = "DefaultJob-franky" Type = Backup Storage = franky-sd Schedule = "WeeklyCycle" Messages = Standard Pool = Incremental Priority = 10 Full Backup Pool = Full Incremental Backup Pool = Incremental Maximum Concurrent Jobs = 10 Write Bootstrap = "/var/lib/bareos/%c.bsr" } FileSet { Name = "franky" Include { Options { Signature = MD5 # calculate md5 checksum per file } File = "/root" File = "/etc" File = "/var/www" File = "/var/www" File = "/var/lib/pgsql" } } Pool { Name = Full Pool Type = Backup Recycle = yes # Bareos can automatically recycle Volumes AutoPrune = yes # Prune expired volumes VolumeRetention = 1 month # How long should the Full Backups be kept? (#06) Label Format = "Full-" # Volumes will be labeled "Full-<volume-id>" Use Volume Once = yes } Pool { Name = Incremental Pool Type = Backup Recycle = yes # Bareos can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Label Format = "Incremental-" # Volumes will be labeled "Incremental-<volume-id>" VolumeRetention = 2 h # How long should the Full Backups be kept? (#06) Use Volume Once = yes Maximum Volumes = 75 # Limit number of Volumes in Pool } Schedule { Name = "WeeklyCycle" Run = Level=Full Pool=Full on 1st at 2:00 # (#04) Run = Level=Incremental Pool=Incremental on 2-31 at 02:00 # (#10) } ################## # Bareos SD ################## Device { Name = FrankyStorage Media Type = File2 Archive Device = /backup/bareos LabelMedia = yes; # lets Bareos label unlabeled media Random Access = yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = yes; AlwaysOpen = no; } ################## # Bareos FD ################## FileDaemon { # this is me Name = franky-fd Maximum Concurrent Jobs = 20 Plugin Directory = /usr/lib64/bareos/plugins compatible = no } Can you take a look please? I would love to understand, what I have missed here. Best regards, Ludwig -- 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 bareos-users+unsubscr...@googlegroups.com. To post to this group, send email to bareos-users@googlegroups.com. For more options, visit https://groups.google.com/d/optout.