Re: [Bacula-users] confused by automatic purging
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? __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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] confused by automatic purging
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. I guess I don't mind, but it was clearly unexpected. I did notice that the same thing didn't happen last night on the TuesdayPool nor did it happen at any other time so it definitely caught me by surprise. That Bacula had reached ahead a week in time and 'purged' a backup without cause didn't make sense given the objective of Bacula to hold on to all possible backups as long as needed which is also why I have set the 'retention period' to be 19 days on a 3 week rotation. Thanks -- Craig White [EMAIL PROTECTED] - 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] confused by automatic purging
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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] confused by automatic purging
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 -- Craig White [EMAIL PROTECTED] - 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] confused by automatic purging
On 7/10/07, Craig White [EMAIL PROTECTED] wrote: 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 } Quick question. Have you changed this pool definition after labeling these tapes? As each tape has an independent Volume Retention that is stored in the database when the tape is labeled. This value is taken from the loaded pool definition at that time. John - 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] confused by automatic purging
Hi, 10.07.2007 20:11,, John Drescher wrote:: On 7/10/07, *Craig White* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: 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 } Quick question. Have you changed this pool definition after labeling these tapes? As each tape has an independent Volume Retention that is stored in the database when the tape is labeled. This value is taken from the loaded pool definition at that time. Unfortunately, the 1,641,600 seconds reported by the list are exactly 19 days... unless my windows' calculator is broken (or I screwed the divisions up). I'd rather suspect that all jobs on that volume were beyond their retention - the messages indicate that there are no more jobs stored on the volume (compare with the other volume where it reports that records were pruned). Arno John - 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users