Great so fixed and let it run see how it goes.

On Thursday, November 9, 2023 at 10:50:42 AM UTC+2 Miguel Santos wrote:

> Sorry about that, yes, the name of the pools is all mixed up since the 
> beginning when I sent the first message.
>
> But the fix should be self explanatory.
>
>   Run = Level=Full Pool=DailyFullCyclePool 
> FullPool=DailyFullCyclePool  mon-sat at 22:00
>
>   Run = Level=Full Pool=WeeklyFullCyclePool 
> FullPool=WeeklyFullCyclePool  2nd-5th sun at 22:00
>
>   Run = Level=Full Pool=MonthlyFullCyclePool 
> FullPool=MonthlyFullCyclePool  1st sun at 22:00
>
> On Thursday, November 9, 2023 at 9:04:48 AM UTC+1 Yariv Hazan wrote:
>
>> This looks OK, but maybe its the naming is the issue.
>> What pool should hold which backups?
>> DailyFullCyclePool should hold mon-sat at 22:00
>> MonthlyFullCyclePool  should hold 1st sun at 22:00
>> Right?
>>
>> On Tuesday, November 7, 2023 at 4:15:16 PM UTC+2 Miguel Santos wrote:
>>
>>> I think I have seen this before and probably it may be a bug, but I have 
>>> not had the initiative to look further.
>>>
>>> So, what I believe is happening is that the Pool is taken from either 
>>> the defaults.
>>>
>>> Can you try to change the schedule so it ends up like this?
>>>
>>> Schedule {
>>>
>>>   Name = CustomCycle
>>>
>>>   Run = Level=Full Pool=DailyFullCyclePool *FullPool=DailyFullCyclePool*  
>>> 1st sun at 22:00
>>>
>>>   Run = Level=Full Pool=WeeklyFullCyclePool 
>>> *FullPool=WeeklyFullCyclePool*  2nd-5th sun at 22:00
>>>
>>>   Run = Level=Full Pool=MonthlyFullCyclePool 
>>> *FullPool=MonthlyFullCyclePool*  mon-sat at 22:00
>>> }
>>>
>>> Just adding FullPool to the schedule.
>>>
>>> Good luck.
>>>
>>>
>>> On Tuesday, November 7, 2023 at 3:01:29 PM UTC+1 Yariv Hazan wrote:
>>>
>>>> Hi Guys,
>>>>
>>>> I did as per your help and created the files per your examples thank 
>>>> you so much.
>>>>
>>>> I can see the bold letering and also updated the volumes, thanks! 
>>>>
>>>> Seems backups are being saved to an old volume Monthly-0006 , meaning 
>>>> they are not written to a new Daily-XXXX that is supposed to be created.
>>>>
>>>> Please see my configuration:
>>>>
>>>>  
>>>>
>>>> Job {
>>>>
>>>>   Name = "lpsoar01_job_D"
>>>>
>>>>   JobDefs = "DailyJobDefs"
>>>>
>>>>   FileSet = "lpsoar01_fileset"
>>>>
>>>>   Schedule = "CustomCycle"
>>>>
>>>> }
>>>>
>>>>  
>>>>
>>>> Job {
>>>>
>>>>    Name = "lpsyslog01_job_D"
>>>>
>>>>    JobDefs = "DailyJobDefs"
>>>>
>>>>    FileSet = "lpsyslog01_fileset"
>>>>
>>>>    Schedule = "CustomCycle"
>>>>
>>>> }
>>>>
>>>>  
>>>>
>>>>  
>>>>
>>>> JobDefs {
>>>>
>>>>   Name = "DailyJobDefs"
>>>>
>>>>   Type = Backup
>>>>
>>>>   Level = Full
>>>>
>>>>   Client = bareos-fd
>>>>
>>>>   Schedule = "CustomCycle"   ß--------------I’ve changed this line
>>>>
>>>>   Storage = File
>>>>
>>>>   Messages = Standard
>>>>
>>>>   Pool = DailyFullCyclePool
>>>>
>>>>   Priority = 10
>>>>
>>>>   Write Bootstrap = "/var/lib/bareos/%c.bsr"
>>>>
>>>>   Full Backup Pool = DailyFullCyclePool    # write Full Backups into 
>>>> "Full-Pool" Pool
>>>>
>>>>   Differential Backup Pool = Differential  # write Diff Backups into 
>>>> "Differential" Pool
>>>>
>>>>   Incremental Backup Pool = Incremental    # write Incr Backups into 
>>>> "Incremental" Pool
>>>>
>>>> }
>>>>
>>>>  
>>>>
>>>> Pool {
>>>>
>>>>   Name = DailyFullCyclePool
>>>>
>>>>   Pool Type = Backup
>>>>
>>>>   Recycle = yes
>>>>
>>>>   AutoPrune = yes
>>>>
>>>>   Volume Retention = 7 days
>>>>
>>>>   Maximum Volume Jobs = 1
>>>>
>>>>   Label Format = Daily-
>>>>
>>>>   Maximum Volumes = 7
>>>>
>>>> }
>>>>
>>>>  
>>>>
>>>> Pool {
>>>>
>>>>   Name = WeeklyFullCyclePool
>>>>
>>>>   Pool Type = Backup
>>>>
>>>>   Recycle = yes
>>>>
>>>>   AutoPrune = yes
>>>>
>>>>   Volume Retention = 31 days
>>>>
>>>>   Maximum Volume Jobs = 100
>>>>
>>>>   Label Format = Weekly-
>>>>
>>>>   Maximum Volumes = 5
>>>>
>>>> }
>>>>
>>>>  
>>>>
>>>> Pool {
>>>>
>>>>   Name = MonthlyFullCyclePool
>>>>
>>>>   Pool Type = Backup
>>>>
>>>>   Recycle = yes
>>>>
>>>>   AutoPrune = yes
>>>>
>>>>   Volume Retention = 181 days
>>>>
>>>>   Maximum Volume Jobs = 100
>>>>
>>>>   Label Format = Monthly-
>>>>
>>>>   Maximum Volumes = 6
>>>>
>>>> }
>>>>
>>>>  
>>>>
>>>> Schedule {
>>>>
>>>>   Name = CustomCycle
>>>>
>>>>   Run = Level=Full Pool=DailyFullCyclePool 1st sun at 22:00            
>>>>               ßChanged this line according to my existing pool
>>>>
>>>>   Run = Level=Full Pool=WeeklyFullCyclePool 2nd-5th sun at 
>>>> 22:00             ß Changed this line according to my existing pool
>>>>
>>>>   Run = Level=Full Pool=MonthlyFullCyclePool mon-sat at 
>>>> 22:00                  ß Changed this line according to my existing 
>>>> pool
>>>>
>>>> }
>>>>
>>>> On Sunday, October 29, 2023 at 12:25:36 PM UTC+2 Yariv Hazan wrote:
>>>>
>>>>> Hello,
>>>>> My retention is pretty simple(?) I have only full backups and I need 
>>>>> to keep backups for
>>>>> Last 6 daily backups for a week
>>>>> Last 4 weekly backups for a month
>>>>> Last 6 monthly backups for 6 months.
>>>>>
>>>>> But:
>>>>> 1. All backups are kept for much longer without being pruned.
>>>>> 2. A daily backup volume is created every day but older daily backup 
>>>>> volume are used instead.
>>>>>
>>>>> I run version 22.1.1~pre26.eeec2501e without any changes to defaults.
>>>>>
>>>>> Here is an examples of my configuration:
>>>>>
>>>>> Job {
>>>>>   Name = "lpsoar01_job_D"
>>>>>   JobDefs = "DailyJobDefs"
>>>>>   FileSet = "lpsoar01_fileset"
>>>>>   Schedule = "DailyFullCycle"
>>>>> }
>>>>>
>>>>> JobDefs {
>>>>>   Name = "DailyJobDefs"
>>>>>   Type = Backup
>>>>>   Level = Full
>>>>>   Client = bareos-fd
>>>>>   Schedule = "DailyFullCycle"
>>>>>   Storage = File
>>>>>   Messages = Standard
>>>>>   Pool = DailyFullCyclePool
>>>>>   Priority = 10
>>>>>   Write Bootstrap = "/var/lib/bareos/%c.bsr"
>>>>>   Full Backup Pool = DailyFullCyclePool                 # write Full 
>>>>> Backups into "Full-Pool" Pool
>>>>>   Differential Backup Pool = Differential  # write Diff Backups into 
>>>>> "Differential" Pool
>>>>>   Incremental Backup Pool = Incremental    # write Incr Backups into 
>>>>> "Incremental" Pool
>>>>> }
>>>>>
>>>>> Pool {
>>>>>   Name = DailyFullCyclePool
>>>>>   Pool Type = Backup
>>>>>   Recycle = yes
>>>>>   AutoPrune = yes
>>>>>   Volume Retention = 7 days
>>>>>   Maximum Volume Jobs = 100
>>>>>   Label Format = Daily-
>>>>>   Maximum Volumes = 40
>>>>> }
>>>>>
>>>>> What am I doing wrong here?
>>>>> Thanks,
>>>>> Yariv
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/fbb0e95d-f5a0-4cef-abd9-e1ec50c79f3bn%40googlegroups.com.

Reply via email to