Closed fititnt closed 1 year ago
Maybe create a IS_RESTORE_RUN and a dedicated yarn IS_REINDEX_RUN (this one is simpler and the really need).
The restore process depends on more variables, like have one or more dedicated volumes/host-folders for the data to be imported. Or... the users makes sure that the mongodb & uploaded_documents are already with the real data and then run the reindex.
As reference https://github.com/huridocs/uwazi/wiki/Backup-and-restore
Both
yarn migrate
&yarn reindex
, to avoid user have to do adocker exec -it...
could have some way to re-import old data, like howdocker-compose run -e IS_FIRST_RUN=true --rm uwazi
and the code at docker-entrypoint.sh works.The export/import of mongodb and uploaded_documents could still use some external commands & tools, but not these ones.