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

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

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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code