Prevent loss of OnlyOffice documents
ONLYOFFICE keeps its own database of files that are currently being edited. If for whatever reason the postgresql pod gets removed or restarted, we can lose data, because postgresql has an emptyDir
for its storage.
To make matters worse, the data is also not automatically backed up to Nextcloud. Data is only saved to Nextcloud once all tabs with an ONLYOFFICE document are closed. Luckily the nextcloud-onlyoffice plugin supports "force saving" a document back to nextcloud. We should disable this feature by default, so people can click the "Save" button to save their changes to Nextcloud.
So:
-
Make OnlyOffice's database persistent (save the PostgresQL data in a PVC) (openappstack!448) -
Enable the "Keep intermediate versions when editing (forcesave)" option in the NC plugin, which allows the "Save" button in ONLYOFFICE to be used to save your file to Nextcloud.
Edited by Maarten de Waard