Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Justin Case
Thanks for clarifying this, Ana,

so if I wanted my tier 1 storage to keep backups for 60 days, and my tier 2 
storage to keep backups for 120 days, would it be the best to set the retention 
periods as follows in the different resources:?
• client resources:
• file retention: 60
• job retention: 60
• tier1 pool resources:
• volume retention 70
• tier 2 pool resources:
• file retention 120
• job retention 120
• volume retention 130

Or what else would you propose?

Thank you for your time and effort!
 j/c

> On 31. Jan 2023, at 10:56, Ana Emília M. Arruda  
> wrote:
> 
> Hello Justin,
> 
> Sorry for the confusion!
> You are right, we recommend that *VolumeRetention is greater than or equal to 
> JobRetention".
> 
> So, the Volume will never get pruned before the Job Retention has expired.
> 
> Hope it is clear now.
> 
> Best,
> Ana
> 
> On Tue, Jan 31, 2023 at 10:43 AM Justin Case  wrote:
> Hi Ana, see below
> 
>> On 31. Jan 2023, at 10:16, Ana Emília M. Arruda  
>> wrote:
>> 
>> Hello Justin,
>> 
>> The problem is that you expect the Job doesn't get pruned from the Catalog 
>> (Job and File records deleted from the Bacula database) *before* the 
>> JobRetention value expires.
>> If you have a lower VolumeRetention and the volume gets pruned by using 
>> "prune volume expired yes", your jobs will be pruned before the JobRetention 
>> value.
>> 
>> And when the volume gets pruned, volstatus=Purged, it can be potentially 
>> reused by Bacula or truncated and the job data in the volume gets deleted.
>> 
>> This is why we usually recommend:
>> 
>> JobRetention greater than or equal to VolumeRetention
> 
> In your earlier mail you recommended the opposite:
> 
> 
>> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda  
>> wrote:
>> 
>>  I strongly recommend you to set JobRetention less than or equal to 
>> VolumeRetention to avoid the volume to be pruned before the Job Retention 
>> has expired.
> 
> 
> Which is preferred?
> 
> 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Ana Emília M . Arruda
Hello Justin,

Sorry for the confusion!
You are right, we recommend that *VolumeRetention is greater than or equal
to JobRetention".

So, the Volume will never get pruned before the Job Retention has expired.

Hope it is clear now.

Best,
Ana

On Tue, Jan 31, 2023 at 10:43 AM Justin Case  wrote:

> Hi Ana, see below
>
> On 31. Jan 2023, at 10:16, Ana Emília M. Arruda 
> wrote:
>
> Hello Justin,
>
> The problem is that you expect the Job doesn't get pruned from the Catalog
> (Job and File records deleted from the Bacula database) *before* the
> JobRetention value expires.
> If you have a lower VolumeRetention and the volume gets pruned by using
> "prune volume expired yes", your jobs will be pruned before the
> JobRetention value.
>
> And when the volume gets pruned, volstatus=Purged, it can be potentially
> reused by Bacula or truncated and the job data in the volume gets deleted.
>
> This is why we usually recommend:
>
> JobRetention greater than or equal to VolumeRetention
>
>
> In your earlier mail you recommended the opposite:
>
>
> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda 
> wrote:
>
>  I strongly recommend you to set JobRetention less than or equal to
> VolumeRetention to avoid the volume to be pruned before the Job Retention
> has expired.
>
>
>
> Which is preferred?
>
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Justin Case
Hi Ana, see below

> On 31. Jan 2023, at 10:16, Ana Emília M. Arruda  
> wrote:
> 
> Hello Justin,
> 
> The problem is that you expect the Job doesn't get pruned from the Catalog 
> (Job and File records deleted from the Bacula database) *before* the 
> JobRetention value expires.
> If you have a lower VolumeRetention and the volume gets pruned by using 
> "prune volume expired yes", your jobs will be pruned before the JobRetention 
> value.
> 
> And when the volume gets pruned, volstatus=Purged, it can be potentially 
> reused by Bacula or truncated and the job data in the volume gets deleted.
> 
> This is why we usually recommend:
> 
> JobRetention greater than or equal to VolumeRetention

In your earlier mail you recommended the opposite:


> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda  
> wrote:
> 
>  I strongly recommend you to set JobRetention less than or equal to 
> VolumeRetention to avoid the volume to be pruned before the Job Retention has 
> expired.


Which is preferred?


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Ana Emília M . Arruda
Hello Justin,

The problem is that you expect the Job doesn't get pruned from the Catalog
(Job and File records deleted from the Bacula database) *before* the
JobRetention value expires.
If you have a lower VolumeRetention and the volume gets pruned by using
"prune volume expired yes", your jobs will be pruned before the
JobRetention value.

And when the volume gets pruned, volstatus=Purged, it can be potentially
reused by Bacula or truncated and the job data in the volume gets deleted.

This is why we usually recommend:

JobRetention greater than or equal to VolumeRetention

This guarantees that jobs get pruned only when JobRetention has expired.
And your data is safe in the volume at least until JobRetention is reached.

Best,
Ana

On Tue, Jan 31, 2023 at 12:23 AM Justin Case  wrote:

> Hello Ana,
>
> I though about what you wrote and I am still wondering what would be the
> problem if a volume gets purged before the contained jobs retentions
> expire? This would remove the jobs and the corresponding files also from
> the catalog, ok, but where is the problem?
> I am Just trying to get a better understanding.
>
> Best
>  j/c
>
> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda 
> wrote:
>
> Hello Antonino,
>
> I'm not sure I've understood your question. What does you mean by
> "CATALOGRETENTION"?
>
> There are only three retention values in Bacula: File, Job and Volume. I
> strongly recommend you to set JobRetention less than or equal to
> VolumeRetention to avoid the volume to be pruned before the Job Retention
> has expired.
>
> Best,
> Ana
>
> On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo <
> a.bals...@officinapixel.com> wrote:
>
>> Hello,
>>
>> I have a shell script generating my bacula configs.
>>
>> Is there any enhancements, error or whatever in calculating the retention
>> period as per below?
>>
>> (it is a no-recycle scenario)
>>
>> #days to keep records in months, min 
>> 1RETENTION=2FILERETENTION=$(($RETENTION*30+40))
>> VOLUMERETENTION=$(($RETENTION*30+40))
>> JOBRETENTION=$(($RETENTION*30+90))
>> CATALOGRETENTION=$(($RETENTION*30+90))
>>
>>
>> thanks
>>
>> Antonino
>>
>>
>> ___
>> 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
>
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Justin Case
Hello Ana,

I though about what you wrote and I am still wondering what would be the 
problem if a volume gets purged before the contained jobs retentions expire? 
This would remove the jobs and the corresponding files also from the catalog, 
ok, but where is the problem?
I am Just trying to get a better understanding.

Best
 j/c

> On 30. Jan 2023, at 19:02, Ana Emília M. Arruda  
> wrote:
> 
> Hello Antonino,
> 
> I'm not sure I've understood your question. What does you mean by 
> "CATALOGRETENTION"?
> 
> There are only three retention values in Bacula: File, Job and Volume. I 
> strongly recommend you to set JobRetention less than or equal to 
> VolumeRetention to avoid the volume to be pruned before the Job Retention has 
> expired.
> 
> Best,
> Ana
> 
> On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo 
> mailto:a.bals...@officinapixel.com>> wrote:
> Hello,
> I have a shell script generating my bacula configs.
> 
> Is there any enhancements, error or whatever in calculating the retention 
> period as per below?
> 
> (it is a no-recycle scenario)
> 
> #days to keep records in months, min 1
> RETENTION=2
> 
> FILERETENTION=$(($RETENTION*30+40))
> VOLUMERETENTION=$(($RETENTION*30+40))
> JOBRETENTION=$(($RETENTION*30+90))
> CATALOGRETENTION=$(($RETENTION*30+90))
> 
> thanks
> 
> Antonino
> 
> 
> ___
> 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

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Ana Emília M . Arruda
Hello Antonino,

Please note that Job, File and Volume retention values are related to
"Catalog stuff". They are the retention of the Jobs and File records in the
Catalog.
Bacula doesn't touch the data in the volumes unless the volume gets reused
or truncated.
When you prune jobs, files or volumes, you are "deleting the jobs/files
records from the Catalog database".

If you prune a volume, it means you delete the jobs and files records
associated with this volume from the Catalog.

Thus, "CATALOGRETENTION" is not used in Bacula.

Hope this helps!

Best,
Ana

On Mon, Jan 30, 2023 at 7:13 PM Antonino Balsamo <
a.bals...@officinapixel.com> wrote:

> Thanks Ana and good spot.
>
> CATALOGRETENTION is the value I use for all catalog related stuff (job,
> file and volume), maybe is redundant...
>
> Updated calc:
>
> RETENTION=2FILERETENTION=$(($RETENTION*30+40))
> VOLUMERETENTION=$(($RETENTION*30+40))
> JOBRETENTION=$(($RETENTION*30+40))
> CATALOGRETENTION=$(($RETENTION*30+90))
>
> Cheers
> Ant
>
> Il 30/01/2023 19:02, Ana Emília M. Arruda ha scritto:
>
> Hello Antonino,
>
> I'm not sure I've understood your question. What does you mean by
> "CATALOGRETENTION"?
>
> There are only three retention values in Bacula: File, Job and Volume. I
> strongly recommend you to set JobRetention less than or equal to
> VolumeRetention to avoid the volume to be pruned before the Job Retention
> has expired.
>
> Best,
> Ana
>
> On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo <
> a.bals...@officinapixel.com> wrote:
>
>> Hello,
>>
>> I have a shell script generating my bacula configs.
>>
>> Is there any enhancements, error or whatever in calculating the retention
>> period as per below?
>>
>> (it is a no-recycle scenario)
>>
>> #days to keep records in months, min 
>> 1RETENTION=2FILERETENTION=$(($RETENTION*30+40))
>> VOLUMERETENTION=$(($RETENTION*30+40))
>> JOBRETENTION=$(($RETENTION*30+90))
>> CATALOGRETENTION=$(($RETENTION*30+90))
>>
>>
>> thanks
>>
>> Antonino
>>
>>
>> ___
>> 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


Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Antonino Balsamo

Thanks Ana and good spot.

CATALOGRETENTION is the value I use for all catalog related stuff (job, 
file and volume), maybe is redundant...


Updated calc:

RETENTION=2 FILERETENTION=$(($RETENTION*30+40))
VOLUMERETENTION=$(($RETENTION*30+40))
JOBRETENTION=$(($RETENTION*30+40))
CATALOGRETENTION=$(($RETENTION*30+90))

Cheers
Ant

Il 30/01/2023 19:02, Ana Emília M. Arruda ha scritto:

Hello Antonino,

I'm not sure I've understood your question. What does you mean by 
"CATALOGRETENTION"?


There are only three retention values in Bacula: File, Job and Volume. 
I strongly recommend you to set JobRetention less than or equal to 
VolumeRetention to avoid the volume to be pruned before the Job 
Retention has expired.


Best,
Ana

On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo 
 wrote:


Hello,

I have a shell script generating my bacula configs.

Is there any enhancements, error or whatever in calculating the
retention period as per below?

(it is a no-recycle scenario)

#days to keep records in months, min 1 RETENTION=2 
FILERETENTION=$(($RETENTION*30+40))
VOLUMERETENTION=$(($RETENTION*30+40))
JOBRETENTION=$(($RETENTION*30+90))
CATALOGRETENTION=$(($RETENTION*30+90))


thanks

Antonino


___
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


Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Ana Emília M . Arruda
Hello Antonino,

I'm not sure I've understood your question. What does you mean by
"CATALOGRETENTION"?

There are only three retention values in Bacula: File, Job and Volume. I
strongly recommend you to set JobRetention less than or equal to
VolumeRetention to avoid the volume to be pruned before the Job Retention
has expired.

Best,
Ana

On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo <
a.bals...@officinapixel.com> wrote:

> Hello,
>
> I have a shell script generating my bacula configs.
>
> Is there any enhancements, error or whatever in calculating the retention
> period as per below?
>
> (it is a no-recycle scenario)
>
> #days to keep records in months, min 
> 1RETENTION=2FILERETENTION=$(($RETENTION*30+40))
> VOLUMERETENTION=$(($RETENTION*30+40))
> JOBRETENTION=$(($RETENTION*30+90))
> CATALOGRETENTION=$(($RETENTION*30+90))
>
>
> thanks
>
> Antonino
>
>
> ___
> 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


Re: [Bacula-users] Retention Period

2020-06-23 Thread Wanderlei Huttel
Hello Ken

You must change the "Volume Retention" in the Pool Resource.
And after that is necessary to run the command "update" in the bconsole to
apply the changes vor volumes previously written.

*update
1: Volume parameters
14: All Volumes from all Pools

Best regards

*Wanderlei Hüttel*



Em ter., 23 de jun. de 2020 às 13:20, Ken Mandelberg 
escreveu:

> I'm using files for Volumes, not tapes. Originally I was doing 90 day
> retention, but since then the amount of data to backup has increased,
> and I don't want to commit more file volumes (I have 13 *50G ). The
> backups stop when the files are full and the soonest expiration date
> hasn't been reached.
>
> I tried changed the setting in the director.conf for the client to
>
>File Retention = 30 days# 30 days
>Job Retention = 45 days
>AutoPrune = yes # Prune expired Jobs/Files
> }
>
> I have rebooted the client (its all localhost) and the files still show
> 90 day expirations , all full and the jobs don't run.
>
> To get things running, I can manually purge the oldest, but when it
> starts writing to it, I still see the 90 days expiration date.
>
> I don't actually care about the limit. I have as many volumes as I want
> to commit, and just want it to purge what ever is necessary when they
> are all filled.
>
> What do I need to do?
>
>
>
>
> ___
> 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


Re: [Bacula-users] Retention Period not working?

2017-08-30 Thread Jim Richardson
Please dig into the rationale for “I delete the oldest tapes from this pool” ??

If you are manually deleting the tape Volume or changing the Pool, you are 
changing the Volume information, the restore wizard is linked to the “at the 
time of run” job, pool, and volume information in order to produce the list.  
This may be why you see the correct information when you specify the job id.  
If your retention for Volumes needs to be 365 days, as you have configured, let 
Bacula purge/recycle volumes.  I have found the easiest way is to use the 
‘Recycle Oldest Volume’ directive to recycle the oldest tapes in the Pool 
currently in your library.  If you are replacing 3 tapes every month and you 
have 36 tapes in rotation, the oldest 3 will be purged and recycled as the 
running jobs need them.  My experience is if you are replacing tapes and 
updating the slots appropriately there should never be a need to manually 
delete Volumes or change Pools.  Volumes physically moved to off site will move 
to Slot 0 “removed” until reinserted into your library.  They will naturally 
purge and recycle per configured retention periods and in a jam the oldest will 
be used to ensure the running job completes (say if the job grows to a fourth 
tape).  If you want to have a pool for just Off-Site monthlies create a pool 
for OffSite, use the pool override option in your schedule resource to assign 
it when the monthlies run.  When you return the tapes to the library the above 
‘Recycle Oldest Volume’ option will be sure they are recycled first.

I hope that helps.

Jim Richardson

From: sachin.holikar [mailto:sachin.holi...@gmail.com]
Sent: Wednesday, August 30, 2017 8:18 AM
To: Wanderlei Huttel <wanderleihut...@gmail.com>
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Retention Period not working?

Thanx for the Response. Here is the Output. and the Directory listing is 
correct.

*restore jobid=2440
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
You have selected the following JobId: 2440

Building directory tree for JobId(s) 2440 ...  
++
128,439 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.
cwd is: /
$ ls
...





On Wed, Aug 30, 2017 at 3:14 PM, Wanderlei Huttel 
<wanderleihut...@gmail.com<mailto:wanderleihut...@gmail.com>> wrote:
Hello Sachin

Try to restore jobid=2440 until the screen to confirm and post all information 
in the screen (since the begin)

Regards

Wanderlei Hüttel
http://www.huttel.com.br

2017-08-30 9:40 GMT-03:00 sachin.holikar 
<sachin.holi...@gmail.com<mailto:sachin.holi...@gmail.com>>:
Hello Expert,

We have been using Bacula Version: 7.4.0.
Recently we introduced Offsite backup pool with N no. of tapes. The retention 
periods are as follows,
File Retention : 92 Days
Job Retention : 92 Days
Volume Retention : 365 Days
Every month we take offsite backup and the respective tapes move out of the 
library manually.  And replace them with the oldest backup tapes.
I use 3 sets for this so that I delete the oldest tapes from this pool and add 
the tapes from next-backup-cycle set (which was previously kept aside).
In order to verify , I tried to do restore for one of the hosts and surprised 
to found that it allows me to choose only from 1 Set.
Select the Client (1-17): 2
Automatically selected FileSet: ClientA_offsite_system
+---+---+--+---+-++
| JobId | Level | JobFiles | JobBytes  | StartTime   | VolumeName |
+---+---+--+---+-++
| 2,854 | F |  137,373 | 5,130,634,026 | 2017-08-27 18:51:12 | 0001ABL4   |
+---+---+--+---+-++
Whereas actually there should be atleast 2 more available backups done in 
previous months , as indicated by the query,
query #5 {List all backups for a Client}
Choose a query (1-20): 5
Enter Client Name: ClientA
+---+++---+-+--+---++
| JobId | Client | FileSet| Level | StartTime   | 
JobFiles | JobBytes  | VolumeName |
+---+++---+-+--+---++
| 2,440 | ClientA-fd | ClientA_offsite_system | F | 2017-07-02 18:52:02 |  
137,333 | 5,114,946,004 | 000193L4   |
| 2,652 | ClientA-fd | ClientA_offsite_system | F | 2017-07-30 18:52:40 |  
137,354 | 5,123,225,649 | 000134L4   |
| 2,854 | ClientA-fd | ClientA_offsite_system | F 

Re: [Bacula-users] Retention Period not working?

2017-08-30 Thread sachin.holikar
Thanx for the Response. Here is the Output. and the Directory listing is
correct.

*restore jobid=2440
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
You have selected the following JobId: 2440

Building directory tree for JobId(s) 2440 ...
++
128,439 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.
cwd is: /
$ ls
...




On Wed, Aug 30, 2017 at 3:14 PM, Wanderlei Huttel  wrote:

> Hello Sachin
>
> Try to restore jobid=2440 until the screen to confirm and post all
> information in the screen (since the begin)
>
> Regards
>
> *Wanderlei Hüttel*
> http://www.huttel.com.br
>
> 2017-08-30 9:40 GMT-03:00 sachin.holikar :
>
>> Hello Expert,
>>
>> We have been using Bacula Version: 7.4.0.
>> Recently we introduced Offsite backup pool with N no. of tapes. The
>> retention periods are as follows,
>> File Retention : 92 Days
>> Job Retention : 92 Days
>> Volume Retention : 365 Days
>> Every month we take offsite backup and the respective tapes move out of
>> the library manually.  And replace them with the oldest backup tapes.
>> I use 3 sets for this so that I delete the oldest tapes from this pool
>> and add the tapes from next-backup-cycle set (which was previously kept
>> aside).
>> In order to verify , I tried to do restore for one of the hosts and
>> surprised to found that it allows me to choose only from 1 Set.
>> Select the Client (1-17): 2
>> Automatically selected FileSet: ClientA_offsite_system
>> +---+---+--+---+
>> -++
>> | JobId | Level | JobFiles | JobBytes  | StartTime   |
>> VolumeName |
>> +---+---+--+---+
>> -++
>> | 2,854 | F |  137,373 | 5,130,634,026 | 2017-08-27 18:51:12 |
>> 0001ABL4   |
>> +---+---+--+---+
>> -++
>> Whereas actually there should be atleast 2 more available backups done in
>> previous months , as indicated by the query,
>> query #5 {List all backups for a Client}
>> Choose a query (1-20): 5
>> Enter Client Name: ClientA
>> +---+++---+-
>> +--+---++
>> | JobId | Client | FileSet| Level |
>> StartTime   | JobFiles | JobBytes  | VolumeName |
>> +---+++---+-
>> +--+---++
>> | 2,440 | ClientA-fd | ClientA_offsite_system | F | 2017-07-02
>> 18:52:02 |  137,333 | 5,114,946,004 | 000193L4   |
>> | 2,652 | ClientA-fd | ClientA_offsite_system | F | 2017-07-30
>> 18:52:40 |  137,354 | 5,123,225,649 | 000134L4   |
>> | 2,854 | ClientA-fd | ClientA_offsite_system | F | 2017-08-27
>> 18:51:12 |  137,373 | 5,130,634,026 | 000191L4   |
>> +---+++---+-
>> +--+---++
>> As can be seen in the recors , there have been 3 backups done on
>> 02-07-2017 and 30-07-2017 and 27-08-2017.
>> Then why am I being presented with only backup from 27-08-2017 at the
>> restore prompt?
>>
>>
>> Thanx in advance.
>>
>>
>> Regards,
>> Sachin
>>
>> 
>> --
>> 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@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>
--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention Period not working?

2017-08-30 Thread Wanderlei Huttel
Hello Sachin

Try to restore jobid=2440 until the screen to confirm and post all
information in the screen (since the begin)

Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2017-08-30 9:40 GMT-03:00 sachin.holikar :

> Hello Expert,
>
> We have been using Bacula Version: 7.4.0.
> Recently we introduced Offsite backup pool with N no. of tapes. The
> retention periods are as follows,
> File Retention : 92 Days
> Job Retention : 92 Days
> Volume Retention : 365 Days
> Every month we take offsite backup and the respective tapes move out of
> the library manually.  And replace them with the oldest backup tapes.
> I use 3 sets for this so that I delete the oldest tapes from this pool and
> add the tapes from next-backup-cycle set (which was previously kept aside).
> In order to verify , I tried to do restore for one of the hosts and
> surprised to found that it allows me to choose only from 1 Set.
> Select the Client (1-17): 2
> Automatically selected FileSet: ClientA_offsite_system
> +---+---+--+---+
> -++
> | JobId | Level | JobFiles | JobBytes  | StartTime   |
> VolumeName |
> +---+---+--+---+
> -++
> | 2,854 | F |  137,373 | 5,130,634,026 | 2017-08-27 18:51:12 |
> 0001ABL4   |
> +---+---+--+---+
> -++
> Whereas actually there should be atleast 2 more available backups done in
> previous months , as indicated by the query,
> query #5 {List all backups for a Client}
> Choose a query (1-20): 5
> Enter Client Name: ClientA
> +---+++---+-
> +--+---++
> | JobId | Client | FileSet| Level |
> StartTime   | JobFiles | JobBytes  | VolumeName |
> +---+++---+-
> +--+---++
> | 2,440 | ClientA-fd | ClientA_offsite_system | F | 2017-07-02
> 18:52:02 |  137,333 | 5,114,946,004 | 000193L4   |
> | 2,652 | ClientA-fd | ClientA_offsite_system | F | 2017-07-30
> 18:52:40 |  137,354 | 5,123,225,649 | 000134L4   |
> | 2,854 | ClientA-fd | ClientA_offsite_system | F | 2017-08-27
> 18:51:12 |  137,373 | 5,130,634,026 | 000191L4   |
> +---+++---+-
> +--+---++
> As can be seen in the recors , there have been 3 backups done on
> 02-07-2017 and 30-07-2017 and 27-08-2017.
> Then why am I being presented with only backup from 27-08-2017 at the
> restore prompt?
>
>
> Thanx in advance.
>
>
> Regards,
> Sachin
>
> 
> --
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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

2017-01-02 Thread Gi Dot
Yes, I understand that. But for such setup like recycling the same tape
every night, and if the backup takes several hours to complete, the hours
calculation is pretty important.

On 2 Jan 2017 17:32, "Radosław Korzeniewski" 
wrote:

Hello,

2016-12-29 8:10 GMT+01:00 Gi Dot :

> 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
>  hours?
>

Yes it does bu you should read documentation about recycling. When Bacula
cannot find a backup ready volume (volstatus = Append or Recycle/Purge)
then it perform a recycle procedure.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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

2017-01-02 Thread Radosław Korzeniewski
Hello,

2016-12-29 8:10 GMT+01:00 Gi Dot :

> 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
>  hours?
>

Yes it does bu you should read documentation about recycling. When Bacula
cannot find a backup ready volume (volstatus = Append or Recycle/Purge)
then it perform a recycle procedure.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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

2016-12-31 Thread Gi Dot
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"  wrote:

> On Dec 29, 2016, at 2:10 AM, Gi Dot  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
>  hours?
>
>
> What about using the volume just for one backup?  This solves your issue I
> think.
>
>  Use Volume Once = yes
>
> --
> Dan Langille - BSDCan / PGCon
> d...@langille.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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

2016-12-31 Thread Dan Langille
On Dec 29, 2016, at 2:10 AM, Gi Dot  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  hours?What about using the volume just for one backup?  This solves your issue I think.  Use Volume _Once_ = yes-- Dan Langille - BSDCan / PGCond...@langille.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention Period

2016-08-30 Thread Wanderlei Huttel
Hello


2016-08-30 4:32 GMT-03:00 sachin.holikar :

> Hello Community,
>
>
>
> I have a question regarding Bacula retention period.
>
> We have bacula Server 7.4.0 installed on SLES 12.
>
>
>
> We wish to take weekly incremental backup of a client (ClientA) and then
> Full Backup over the weekend.
>
>
>
> Weekly incremental backup , we would like to keep for 1 month.
>
> Weekend Full backup , we wish to keep for 3 months.
>
> One more system level (System partition only /root /usr etc) full backup
> of the same client we wish to take every 6 months. and retain obviously 6
> months.
>
Create pools distinct with retention expected and create 2 Jobs for  this
client

>
>
> In this scenarios , I am not sure how should I go about different backup
> retention requirement for a same client. As the 2 rentention parameters job
> records and file records and to be
>
> mentioned in the Client Section. How can we specify 2 different job/file
> rentention periods for a single client. Is it possible?
>
You can set  the Job and File retention with the higher retention as you
expect, because when the volume is recycled it will prune Jobs and Files
from Catalog, for this you have to set in the Pool resource "Auto prune =
yes"

>
>
>
>


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

> Thanx for any help.
>
>
>
> Regards,
>
> Admin
>
> 
> --
>
> ___
> 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