Replies: 3 comments 4 replies
-
@C0nsultant fyi |
Beta Was this translation helpful? Give feedback.
-
You are absolutely correct in criticizing the current backup approach during updates. The idea was to have a snapshot you could immediately revert back to in case something went wrong, and I would like to keep it this way. Ideally, this would include
A good first approach. Though I think the backup-by-default should remain. Opt-out of security rather than opt-in.
See above. I don't think backups of the media directory or the database make sense outside your typical backup schedule, and in particular don't make sense along the update path. The media directory is independent of release AFAICT. The (postgres/mysql) database is versioned s.t. required migrations are automatically performed. For sqlite, input from @jonaswinkler is appreaciated.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation and your view on this. Regarding the database: the sqlite database resides in the data directory, so it will be backed up. Regarding the folders: There are some more files and folder flying around the root folder, which were not mentioned, e.g. the docker and docs folders. I'm assuming those could easily be backup up, too. However, since the docs folder is sized 19M and only contains documentation, not application logic, I guess it can safely be left out of a backup. I will create pull request shortly, which can be the ground work for further discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I love paperless-ng and it works like a charm for me.
Using the ansible route, performing an update currently backs up the root installation folder.
For the default setup (the media folder is not set to a location outside of the root folder), this includes creating a copy of the imported documents, their processed duplicates and thumbnails.
With a relatively fresh setup, this means creating a backup folder sized 2GB.
Personally, I prefer using dedicated backup solutions for purposes like that.
I'd like to discuss ways of improving upon the current situation before creating pull requests
Best regards and thanks for an amazing project
Beta Was this translation helpful? Give feedback.
All reactions