Bacula-users

Re: [Bacula-users] Job and File prune

2015-04-30 10:32:24
Subject: Re: [Bacula-users] Job and File prune
From: Silver Salonen <silver.salonen AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 30 Apr 2015 17:30:53 +0300
And how about "Purge Oldest Volume = yes" - that can cause such thing too, I guess?

BTW, it's recommended not to use this:

From Bacula manual:
> The catalog is then purged irrespective of retention periods of all Files and Jobs written to this Volume.
> ...
> However, by using this option you risk losing valuable data.
> ...
> We highly recommend against using this directive, because it is sure that some day, Bacula will recycle a Volume that contains current data.

--
Silver

On 04/30/2015 05:13 PM, Ana Emília M. Arruda wrote:
Hello Marcio,

Which value do you have for "volume retention" period? Bacula will not prune jobs if the volume retention period had expired.

Best regards,
Ana

On Thu, Apr 30, 2015 at 10:16 AM, Marcio Costa <marciofoz AT gmail DOT com> wrote:
Hello guys.

I have doubts about my retention time.  How you can see, file and job retention time have the same value (10 days).

show job="bkp-ipava-data"
Job: name=bkp-ipava-data JobType=66 level=Incremental Priority=10 Enabled=1
     MaxJobs=1 Resched=0 Times=0 Interval=1,800 Spool=0 WritePartAfterJob=1
     Accurate=0
  --> Client: name=bkp-ipava-data-fd address=10.80.5.4 FDport=9102 MaxJobs=1
      JobRetention=10 days  FileRetention=10 days  AutoPrune=1


After all jobs runing, I see this prune msg:

2015-04-29 23:45:17   director_2 JobId 2056: Begin pruning Jobs older than 10 days .
2015-04-29 23:45:17   director_2 JobId 2056: No Jobs found to prune.
2015-04-29 23:45:17   director_2 JobId 2056: Begin pruning Files.
2015-04-29 23:45:17   director_2 JobId 2056: Pruned Files from 2 Jobs for client bkp-ipava-data-fd from catalog.
2015-04-29 23:45:17   director_2 JobId 2056: End auto prune.

But I still seeing older jobs (last lines removed):

list job=bkp-ipa-data
+-------+--------------+---------------------+------+-------+----------+---------------+-----------+
| JobId | Name         | StartTime           | Type | Level | JobFiles | JobBytes      | JobStatus |
+-------+--------------+---------------------+------+-------+----------+---------------+-----------+
|     4 | bkp-ipa-data | 2015-04-02 12:15:00 | B    | F     |       40 | 1,457,340,082 | T         |
|    65 | bkp-ipa-data | 2015-04-02 23:45:03 | B    | I     |        7 |   272,944,248 | T         |
|    70 | bkp-ipa-data | 2015-04-03 12:15:01 | B    | I     |        4 |    91,053,926 | T         |
|   131 | bkp-ipa-data | 2015-04-03 23:45:03 | B    | I     |        7 |   269,188,272 | T         |
|   136 | bkp-ipa-data | 2015-04-04 12:15:00 | B    | I     |        4 |    89,648,234 | T         |
|   253 | bkp-ipa-data | 2015-04-04 23:45:01 | B    | I     |        7 |   266,419,116 | T         |
|   258 | bkp-ipa-data | 2015-04-05 12:15:00 | B    | I     |        4 |    87,528,151 | T         |
|   319 | bkp-ipa-data | 2015-04-05 23:45:00 | B    | I     |        7 |   262,430,747 | T         |
|   324 | bkp-ipa-data | 2015-04-06 12:15:01 | B    | I     |        4 |    89,773,856 | T         |
|   383 | bkp-ipa-data | 2015-04-06 23:45:00 | B    | I     |        7 |   269,536,959 | T         |
|   388 | bkp-ipa-data | 2015-04-07 12:15:01 | B    | I     |        4 |    91,672,088 | T         |
|   447 | bkp-ipa-data | 2015-04-07 23:45:02 | B    | I     |        7 |   280,260,251 | T         |
|   452 | bkp-ipa-data | 2015-04-08 12:15:01 | B    | I     |        4 |    94,924,092 | T         |

Its correct ?  I think that jobs with more than 10 days must be removed too from the catalog ...

Thank you
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
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>