(this is related to my previous question of today "Volume retention &
recycling")

I'm trying to set up an admin job to prune volumes at a predefined point of
time. However, it does not prune the database entries although the admin job
runs. Running prune command from the console works ok, which means the
retention periods obviously are ok.

Bacula 1.38.11 on FC5/MySQL5

Below is what I believe is essential from my director conf. This is a
non-production system, set up for this test only, so pls. ignore the strange
schedule for catalog backups...


This runs the standard catalog backup. 6 times into one pool with 5 mins
intervals (0:3...0:28, pool P1), then another 6 times into another pool
(0:33...0:58, pool P2). This works nicely:

Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Pool=P1 hourly at 0:3
  Run = Pool=P1 hourly at 0:8
  Run = Pool=P1 hourly at 0:13
  Run = Pool=P1 hourly at 0:18
  Run = Pool=P1 hourly at 0:23
  Run = Pool=P1 hourly at 0:28

  Run = Pool=P2 hourly at 0:33
  Run = Pool=P2 hourly at 0:38
  Run = Pool=P2 hourly at 0:43
  Run = Pool=P2 hourly at 0:48
  Run = Pool=P2 hourly at 0:53
  Run = Pool=P2 hourly at 0:58
  }

Client {
  Name = garfield-fd
  Address = garfield
  FDPort = 9102
  Catalog = MyCatalog
  Password = ............
  File Retention = 20 mins
  Job Retention = 20 mins
  AutoPrune = no
  }

This is run twice an hour, to prune (to allow recycling) the volume right
before the schedule above starts using the same pool. The job is run, but
the volumes don't get pruned but the jobs remain in the database. However,
manual pruning right thereafter removes the job entries from the database.
The idea is to prune volumes in pool P1 hourly at 0:00, and P2 at 0:30

Job {
  Name = "Prune"
  Type = Admin
  FileSet = "PruneSet"
  Schedule = "PruneSchedule"
  Prune Files = yes
  Prune Jobs = yes
  Prune Volumes = yes
  Client = garfield-fd
  Pool = P2
  Storage = File
  Messages = Standard
  Priority = 10
  }

Schedule {
  Name = "PruneSchedule"
  Run = Pool="P1" hourly at 00:00
  Run = Pool="P2" hourly at 00:30
  }

FileSet {
  Name = "PruneSet"
  Include {
    File = /var/bacula
  }
}

Pool {
  Name = P1
  Pool Type = Backup
  Recycle = yes
  AutoPrune = no
  Volume Retention = 20 mins
  Accept Any Volume = yes
}

Pool {
  Name = P2
  Pool Type = Backup
  Recycle = yes
  AutoPrune = nos
  Volume Retention = 20 mins
  Accept Any Volume = yes
}

This is what happens. What is strange, the olde admin jobs now get pruned
(eg. job 320 at 0:30), that didn't happen before I changed also the file and
job retention times from something longer to 20 mins. Rightmost fields are
clipped away to enhance readability:
*list jobs
+-------+---------------+---------------------+------+-------+
| JobId | Name          | StartTime           | Type | Level |
+-------+---------------+---------------------+------+-------+
|   314 | BackupCatalog | 2006-08-20 00:03:04 | B    | F     |
|   315 | BackupCatalog | 2006-08-20 00:08:04 | B    | F     |
|   316 | BackupCatalog | 2006-08-20 00:13:04 | B    | F     |
|   317 | BackupCatalog | 2006-08-20 00:18:04 | B    | F     |
|   318 | BackupCatalog | 2006-08-20 00:23:04 | B    | F     |
|   319 | BackupCatalog | 2006-08-20 00:28:04 | B    | F     |
|   321 | BackupCatalog | 2006-08-20 00:33:04 | B    | F     |
|   322 | BackupCatalog | 2006-08-20 00:38:04 | B    | F     |
|   323 | BackupCatalog | 2006-08-20 00:43:04 | B    | F     |
|   324 | BackupCatalog | 2006-08-20 00:48:03 | B    | F     |
|   325 | BackupCatalog | 2006-08-20 00:53:03 | B    | F     |
|   326 | BackupCatalog | 2006-08-20 00:58:03 | B    | F     |
|   327 | Prune         | 2006-08-20 01:00:02 | D    |       |
+-------+---------------+---------------------+------+-------+
*

This shows the volumes really have the same retention periods like the
pools:
Pool: P1
+---------+------------+-----------+----------+----------+--------------+---
------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention |
Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+----------+----------+--------------+---
------+------+-----------+-----------+---------------------+
|       2 | BFile10001 | Append    |  274,633 |        0 |        1,200 |
1 |    0 |         0 | File      | 2006-08-20 01:08:03 |
+---------+------------+-----------+----------+----------+--------------+---
------+------+-----------+-----------+---------------------+
Pool: P2
+---------+------------+-----------+----------+----------+--------------+---
------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention |
Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+----------+----------+--------------+---
------+------+-----------+-----------+---------------------+
|       3 | BFile20001 | Append    |  208,299 |        0 |        1,200 |
1 |    0 |         0 | File      | 2006-08-20 00:58:03 |
+---------+------------+-----------+----------+----------+--------------+---
------+------+-----------+-----------+---------------------+


Shortly: What am I doing in a wrong way this time?
Why doesn't the "Prune" job prune the catalog entries?

Regards,
Timo



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to