Closed rladdusaw closed 12 hours ago
Related issue https://github.com/pulibrary/lib_jobs/issues/795
The /alma/*
directories live on the lib-sftp-*
servers. Both lib-jobs and bibdata access the directories. If we put the cleanup task in the SFTP role, aka roles/system_ldap
, it should apply to all projects that access Alma data.
@mzelesky what should be our cut-off date for purging old files? Three months from today?
Will discuss this in the next Alma DACS meeting on 7/9/2024.
Discuss with the Alma tech team:
In general, 3 months is a good rule, except for the following directory:
/alma/invoices
: 1 year, since I just uncovered that Alma recalculates expenditures for foreign currencies when it shouldn't; the invoice export is the only way I have as of now to find out what we submitted to Prime for payment
User story
The /alma directory has a lot of old files and is using too much disk space. We should setup an automated job to clean up old files.
Acceptance criteria
Create a periodic task to delete files that have been on the disk more than x months