bugdocoll - 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

Submitted by:  Charles Atkinson <catkin>
Submitted on:  Wed 26 Dec 2012 10:02:07 AM UTC  
 
Component: Collating and indexingRelease: 0.7.6
Type: DefectSeverity: 4 - Important
Status: ConfirmedAssigned to: Charles Atkinson <catkin>
Open/Closed: Open

Wed 26 Dec 2012 10:02:07 AM UTC, original submission:

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

Charles Atkinson <catkin>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by catkin (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1