Hello all,
As I keep on improving the backup process, I’d like to know what folders (probably some temp subdirectories) and files can be deleted from OJS’s source code and submission folders in order to reduce file size…
Within OJS source code, I remove every single file from all folders within the cache folder. Leaving the following structure (this is more as reference to anyone doing the same!):
ojs2/cache/CSS
ojs2/cache/_db
ojs2/cache/HTML
ojs2/cache/t_cache
ojs2/cache/t_compile
ojs2/cache/t_config
ojs2/cache/URI
Two simple commands do the job:
- One simple rm -Rf . within the cache folder to remove files inside
- One simple rm - Rf /.* within the cache folder to remove files inside subdirectories recursively
The question is within the submission folder, outside apache/web access. The following is the structure within the “files” folder:
/crossref
/datacite
/fullJournalImportExport
/journals
/site
/temp
/usageStats
usageStats and temp are by far the largest ones. I also regularly “reset” the apache log files which I also backup. They grow pretty fast. Can all files and folder within them be removed?