-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PR] extend the backup mechanism during updates #1
Comments
Changes: * Working molecule pipeline with Github Actions * Builds in Ubuntu 20/22.04 * Added ansible-lint exceptions * Added a paperless temp directory for git clone using the tempfile ansible module * Added a task with the ansible find module to replace the command that runs already. WIP Fixes: * Corrected the path for paperless directory * Added correct defaults for URL/Listen address to run paperless in docker/molecule * Added a separate task to install jbig2enc from source due to issues finding apt repo that contained a working package * Added jmespath package as part of the base install * Added becomes_user/become back in to fix the issues with dir/file owner/groups on install * Added a task to install latest version of pikepdf even if installing an earlier version than v1.8.0
Hi contributers @qcasey @SiM22 @stumpylog , this role was completely remade in the past month with breaking changes introduced last week.
Input for this issue:I would like to reframe the issue a little bit. First of all I would like to split things up.
For both portions:I am not yet sure how deep we should integrate with the Ops flow. I think it is a kind of a seperation of concerns thing. Backup and restore should always be part of the rollout of newer application versions but personally I think outside of this roles concern. My personal flow is described below. But as you might expect that differs from system to system a little bit and I am not sure if we shall abstract that flow and offer a general backup/restore mechanism or let this portion be up to the user operating paperless. Let's see what you think :) For the backup portion:My personal flow looks like this:
I could imagine to abstract this flow what leeds to this flow we could add to the role. Possible role flow
and does not allow to put the user data into a subdir of the paperless app dir (as this always leeds to trouble somewhen) I would recommend a backup workflow like this:
What do you think? |
I created the original CR, because the old behaviour of a non-optional backup together with the situation, that a default setup would have all media files within the directory that was backed up, seemed imperfect. Personally, I don't think this role should create / restore a backup at all (the main feature of the PR for me was the ability to turn it off). Performing a backup is also not ansible-specific. The docker / docker-compose setup also leaves backup stuff to the user. |
This is an unmerged PR involving ansible, if this repo is maintained it should be considered.
See jonaswinkler/paperless-ng#1058 and paperless-ngx/paperless-ngx#16
The text was updated successfully, but these errors were encountered: