Files_dir data files or attachments

Hello,

In the case of upgrade script fails we have to restore database, fix the error, and re-run the upgrade script. I am wondering if we will also have to restore directory below?

; Complete path to directory to store uploaded files
; (This directory should not be directly web-accessible)
; Windows users should use forward slashes
files_dir = /data/production

Best regards,

Dung.

Hi @dung,

If your files were stored there previously, then, yes, you would. Our upgrade guide provides more detailed advice on this: How to Upgrade

Best regards,

Roger
PKP Team

1 Like

Hi @rcgillis,

additionally, do you know if the upgrade script will add/modify/delete or move files in files_dir = /data/production in any way?

Thank you so much for helping me understanding the upgrade process/script better.

Best regards,

Dung.

Hi @dung,

Most upgrades do not change the contents of the files_dir files directory, but some do. For example, any upgrade from OJS 3.2.x to 3.3.x will rearrange the contents of the files directory. The safest approach will be to take a complete backup before running an upgrade, and restore it fully before trying again if you encounter a problem.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thank you @asmecher !

1 Like