What maters here more is your retention time on the client/jobs so you make 
sure you can do the restore.  So check all of those.

In your Pool config you volume use is longer than your retention.  You probably 
want to swap those.  So the volume stops being used for new backups before the 
volume is pulled out of your catalog.

Now your volume may not actually get recycled, in my experience Bareos tries to 
not throw out data unless it has to.  So even if purged from catalog it will 
keep labeling new volumes.  This can cause you to run out of space on disk 
volumes.

To address this, I have a job that runs daily that calls a script that forces 
updating the prunes on the volume and then truncates them (frees up disk space) 
which will force them to be reusable for the next needed volume.

Update for your pool name.

#!/bin/bash
for x in `echo "list volumes pool=AI-Consolidated" | bconsole | grep -v "list 
volumes" | grep AI-Consolid | awk -F\| '{print $3}'`
 do
 echo "prune volume=$x yes"
done | bconsole

# actaully free up disk space
echo "truncate volstatus=Purged pool=AI-Consolidated yes" \
| bconsole


So check those over retention times, and then if your volumes are getting piled 
up with old data try the second part.

Brock Palen




> On Apr 24, 2020, at 4:37 PM, Valentin Dzhorov <[email protected]> wrote:
> 
> I understand the core philosophy of bareos and the fact that as it 
> predecessor bacula are meant to backup tapes. My storage however is consisted 
> of HDDs only and there is no need of changing tape drives. I am reading 
> through the documentation and I thought I got it right, but apparently I 
> didn't. My goal is the following: I want to have full 7 days of backups at 
> any given time for each client that is backed up. A job is configured like so:
> 
> [root@directorbareos ~]# cat /etc/bareos/bareos-dir.d/job/ufo1.delta.bg.conf 
> Job {
>   Name = example.com
>   Type = Backup
>   Level = Full
>   Client = example.com
>   FileSet= LinuxAll
>   Messages = Standard
>   Storage = examplestorage
>   Pool = LinuxAll
>   Schedule = Weekly_10pm
>   Priority = 20
>   Allow Mixed Priority = yes
>   Reschedule On Error = yes
>   Reschedule Interval = 180
>   Reschedule Times = 2
>   Run Script {
>     Console = ".bvfs_update jobid=%i"
>     RunsWhen = After
>     RunsOnClient = No
>   }
> }
> 
> 
> And my volume is configured like so:
> 
> 
> Pool {
>   Name = example.com
>   Pool Type = Backup
>   Recycle = yes
>   Auto Prune = yes
>   Volume Retention = 7 days
>   Label Format = "example.com-"
>   Volume Use Duration = 14d
>   Recycle Oldest Volume = yes
>   Storage = examplestorage
> }
> 
> 
> So, how can I achieve having full 7 days of backup the most efficient way 
> without wasting space and having the old files automatically deleted from the 
> volume, not just the catalog? 
> 
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/bfdceca4-6811-4ef2-9f55-80a598b286ac%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/FA0DFB2B-2FEF-42ED-A00B-1D8F274939A6%40mlds-networks.com.

Reply via email to