By default, files in intermediate formats are stored in the directory specified in the TMPDIR configurable variable, and removed after processing. If you set the KEEP configurable variable, those files won't be removed.
There is no rotate-like mechanism yet. If your KEEP is set to 1, you'll have to clean up TMPDIR manually once in a while.
You could create a crontab entry like this :
0 3 * * 0 find $HOME/tmp -type f -ctime +14 | xargs rmto clean up the all files older than two weeks. Run such an entry as a trusted user only.
Files which could be reused later (e.g. reports which could be merged (automatically merging will get supported in a later Lire release)) can be stored in an archive. If you like to build such an archive, set ARCHIVE: ARCHIVE indicates whether files should get archived. If set, files which are candidates for archiving are moved from TMPDIR to the archive. I.e.:
Table 15.1. To KEEP or to ARCHIVE?
file is candidate for archive | variable KEEP is | variable ARCHIVE is | file is kept in |
---|---|---|---|
yes | set | set | archive |
yes | set | unset | TMPDIR |
yes | unset | set | archive |
yes | unset | unset | /dev/null |
no | set | set | TMPDIR |
no | set | unset | TMPDIR |
no | unset | set | /dev/null |
no | unset | unset | /dev/null |