#782: inveniogc: remove old uploaded tmp-files
----------------------------+------------------
 Reporter:  jlavik          |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  major           |  Milestone:  v1.0
Component:  WebSession      |    Version:
 Keywords:  bibupload, fft  |
----------------------------+------------------
 The Invenio garbage collector does not remove temporary files generated by
 bibdocfile.py during file uploads (FFT). These files are stored in
 CFG_TMPDIR and can quickly fill up this space in a production environment.

 The flag -l --logs to remove old logs and temporary files should also
 include these files which currently is named "tmp<HASH>.<FORMAT>":

 Inside {{{clean_logs()}}}
 {{{
     gc_exec_command('find %s -name "tmp*"'
         ' -atime +%s -exec rm %s -f {} \;' \
             % (CFG_TMPDIR, CFG_MAX_ATIME_RM_FFT, vstr))
 }}}

 Where CFG_MAX_ATIME_RM_FFT can be something like:

 {{{
 # After how many days to remove obsolete temporary files for file-upload
 CFG_MAX_ATIME_RM_FFT = 7
 }}}

-- 
Ticket URL: <http://invenio-software.org/ticket/782>
Invenio <http://invenio-software.org>

Reply via email to