Hi
Thanks for your resonse, I am curious, what kinda script do you use to
delete purged volumes?? Do u run it in a bacula job or outside of bacula
a cron/Scheduler job??
Sincerely /Mehrdad
On 2024-10-02 14:04, Chris Wilkinson wrote:
I've never properly understood the scratch pool concept and i never
use it. I use disc volumes so there seems no reason to return an
expired volume to a scratch pool. I let Bacula expire and truncate
them and create new volumes as needed. Every so often i use a script
to delete the purged volumes from disc. Maybe it's different for tapes.
On Tue, 1 Oct 2024, 15:41 Phil Stracchino, <ph...@caerllewys.net
<mailto:ph...@caerllewys.net>> wrote:
On 10/1/24 03:48, Mehrdad R. wrote:
> Hi everyone
> I am new t Bacula, and I have problem understanding some
concepts, one
> of them is the idea of volumes, how they are created and
> VolumeRetention
> I do understand that it is from the backup-to-tape world, and it is
> basical a representation of a tape, right??
> First of all, i probably should mention that i am backing up to
disk,
> not to tape, anyways i thought that Volume retention tells
Bacula how
> long to use a Volume and when to create a new one, i.e a
> VolumeRetention of 6 days means Bacula will create a new volume file
> to use very 6 days
>
> But this does not seem to be the case, from what i have seen in my
> tests. So if I want a new volume to be created every 7 days for
weekly
> backups(one full, 6 increments) the only directive to use is "Volume
> Use Duration" like "Volume Use Duration=6 days 20 hours"??
> What happens to the previous volume, will restore still work as
it should??
That is absolutely the way to do it. Each volume will be marked Used
when its Use Duration runs out. If there is no appendable volume
(all
are Used) when a job starts, Bacula will create a new one. The Used
volumes will remain present for restores until you clean them up.
The
typical approach is to use Retention settings to control how long the
backups are kept active, then move the volumes into the Scratch pool
when they are purged or all jobs on them have been pruned. From there
you can either delete them, or truncate and Recycle them.
--
Phil Stracchino
Fenian House Publishing
ph...@caerllewys.net <mailto:ph...@caerllewys.net>
p...@co.ordinate.org <mailto:p...@co.ordinate.org>
Landline: +1.603.293.8485
Mobile: +1.603.998.6958
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
<https://lists.sourceforge.net/lists/listinfo/bacula-users>
-Chris-
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users