turnkeylinux / tracker

TurnKey Linux Tracker
https://www.turnkeylinux.org
68 stars 16 forks source link

Mayan EDMS TKLBAM Profile needs updated #1642

Open DocCyblade opened 2 years ago

DocCyblade commented 2 years ago

During testing of a few issues, I found the Mayan EDMS profile is not backing up the cache. I think this is ok to do however we need to document that on a TKLBAM restore you need to go into the GUI and clear/purge the caches. This should fix an issue where you can not preview any documents. I also had to create the document_cache directory maybe document that as well. Not sure if we can exclude the contents and keep the directory or create hooks to re-create the cache directory on restore

Also since 4.x of Mayan the places for files have changed. If we want to exclude the caches we will need to update the new file path

JedMeister commented 2 years ago

Thanks @DocCyblade - Nice work.

We can ensure that the dir remains by adding an .anchor file to the dir and tweaking the backup profile. I.e.:

touch path/to/document_cache/.anchor

Then in the profile:

-path/to/document_cache/
path/to/document_cache/.anchor

Re clearing/purging the caches, hopefully there is a CLI way to do that and we could include it as a restore hook?!