docoll - Bugs: bug #37983, Xapian index backups are not...
You are not allowed to post comments on this tracker with your current authentication level.
bug #37983: Xapian index backups are not deleted after the retention period
Submitter: | Charles Atkinson <catkin> | ||
Submitted: | Wed 26 Dec 2012 10:02:07 AM UTC | ||
Component: | Collating and indexing | Release: | 0.7.6 |
Type: | Defect | Severity: | 4 - Important |
Status: | Confirmed | Assigned to: | catkin |
Open/Closed: | Open |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
No changes have been made to this item
Powered by Savane 3.13-4b48.
Corresponding source code
Backups of Xapian indices (/var/opt/docoll/<instance>/backup/Xapian_index.<timestamp>.tgz files) are not removed after the retention period.
They should be deleted as set by the 'dump file retention' value set in /etc/opt/docoll/<instance>/backup_db.cfg, in the same way that the PostgreSQL database backups are adeleted.
The problem is in backup_db.sh, in the main section where the find ... -delete command works only on the PostgreSQL database backups.
The problem can be worked around by adding this line to delete Xapian index backups, after the line to remove the PostgreSQL database backups:
find "$backup_dir" -type f -name 'Xapian_index.*.tgz' -mtime +$dump_file_retention -delete