Bacula-users

Re: [Bacula-users] Retention period - last written date, and time?

2016-12-31 18:56:54
Subject: Re: [Bacula-users] Retention period - last written date, and time?
From: Gi Dot <gadidot AT gmail DOT com>
To: Dan Langille <dan AT langille DOT org>
Date: Sun, 1 Jan 2017 07:55:33 +0800
The one day retention period was just an example. Plus, the 'use volume once' directive works if I have only one job to run daily, which is not the case. Say if I need bacula to recycle the same volume on weekend, I'd resort to using "volume use duration" directive, with retention period just a few hours extra. 

On 1 Jan 2017 03:00, "Dan Langille" <dan AT langille DOT org> wrote:
On Dec 29, 2016, at 2:10 AM, Gi Dot <gadidot AT gmail DOT com> wrote:

Hello,

I have always calculated my volume retention period based on its last written date, and time. This means when I want to plan for a new configuration, I will consider how long it takes for the backup to complete - say if it takes 2 hours to complete and I need a retention period of 1 day, I will minus the 2 hours so it'll become 22h, though normally I'll minus a couple of more hours just to be safe.

From the manual:
Search the Pool for a Volume with VolStatus=Recycle and the InChanger flag is set true (if there is more than one, the Volume with the oldest date last written is chosen. If two have the same date then the one with the lowest MediaId is chosen).

Does the time count? Or bacula just look at the date and count it from 0000 hours?

What about using the volume just for one backup?  This solves your issue I think.

     Use Volume _Once_ = yes

--
Dan Langille - BSDCan / PGCon
dan AT langille DOT org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>