>>>>> On Wed, 11 Jul 2007 08:53:22 -0700, Craig White said:
>
> On Wed, 2007-07-11 at 10:15 +0100, Martin Simmons wrote:
> > >>>>> On Tue, 10 Jul 2007 10:50:46 -0700, Craig White said:
> > >
> > > I have a 3 week rotation with a full backup each Friday and differential
> > > backups every weekday.
> > >
> > > Last night, upon execution, the 1_Monday_Week_1 AND 1_Monday_Week_2 were
> > > both purged and it shouldn't have purged 1_Monday_Week_2
> > >
> > > from my backup logs...
> > >
> > > 09-Jul 20:00 SRV1: Start Backup JobId 91,
> > > Job=SRV1Backup.2007-07-09_20.00.00
> > > 09-Jul 20:00 SRV1: Pruned 3 Jobs on Volume "1_Monday_Week_1" from
> > > catalog.
> > > 09-Jul 20:00 SRV1: ua_purge.c:611 All records pruned from Volume
> > > "1_Monday_Week_1"; marking it "Purged"
> > > 09-Jul 20:00 SRV1: ua_purge.c:611 All records pruned from Volume
> > > "1_Monday_Week_2"; marking it "Purged"
> > > 09-Jul 20:00 SRV1: Recycled volume "1_Monday_Week_1"
> > > 09-Jul 20:00 SRV1: Recycled volume "1_Monday_Week_1" on device
> > > "DDS-4" (/dev/nst0), all previous data lost.
> > >
> > > My MondayPool is defined as...
> > > Pool {
> > > Name = MondayPool
> > > Pool Type = Backup
> > > Recycle = yes
> > > AutoPrune = yes
> > > Volume Retention = 19d
> > > Volume Use Duration = 4d
> > > Maximum Volume Jobs = 5
> > > }
> > >
> > > and according to list media...
> > > | MediaId | VolumeName | VolStatus | Enabled | VolBytes |
> > > VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
> > > LastWritten |
> > > +---------+-----------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > > | 2 | 1_Monday_Week_2 | Purged | 1 | 25,815,250,944 |
> > > 26 | 1,641,600 | 1 | 0 | 1 | DDS-4 | 2007-06-25
> > > 22:07:04 |
> > >
> > > My 1_Monday_Week_2 was last written on 6/25/2007 which is clearly not 19
> > > days of Volume Retention.
> > >
> > > Is there something wrong with my understanding of this?
> > >
> > > # rpm -qa|grep bacula
> > > bacula-mysql-2.0.3-1
> > > bacula-mtx-2.0.3-1
> > > bacula-wxconsole-2.0.3-1
> > > bacula-gconsole-2.0.3-1
> >
> > Do you have previous logs still? If so, check for other messages about
> > 1_Monday_Week_2, because it looks like all the jobs had been removed before
> > it
> > ran the above. Also, maybe they were removed with the delete command?
> ----
> I don't - but I think I figured out why this happened. Two weeks ago, I
> ended up running a 'Full' backup on Monday instead of the Differential
> because I changed the FileSet selectors (actually the 'Exclude' portion)
> and that made it run onto a second tape. After I had another 'Full'
> backup on Friday, I deleted 2_Monday_Week_2 and internally, Bacula must
> have figured that since the continuation tape for that particular 'Full'
> set was deleted, then the first tape of that set was worthless too so it
> just purged it.
Ah, yes, that explains it. Deleting 2_Monday_Week_2 would have removed all
the job ids from 1_Monday_Week_2 that were also on 2_Monday_Week_2. If that
left nothing on 1_Monday_Week_2, then the next autopruning would mark is
purged.
__Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users