Paperless NGX backup / Copying is forcing me to have a bigger disk than needed #9143
Replies: 2 comments 4 replies
-
|
mv is dangerous in the update process because it moves the original data and can lead to partial or complete data loss in the event of any error (abortion, OOM, full disk, defective release). cp -r, on the other hand, creates a complete copy and leaves the original data untouched, allowing for a safe rollback at any time. If /opt and /tmp are located on different file systems, mv internally degrades to “copy + delete” anyway and becomes even more risky. An aborted mv leaves behind a broken data directory – an aborted cp does not. The updater deletes /opt/paperless during deployment; with mv, the original data would already be gone. |
Beta Was this translation helpful? Give feedback.
-
|
Oh. I only now see that BACKUPDIR is on /tmp. This is even more dangerous for me (and possible others) since /tmp is tmpfs and is in RAM, or am I wrong? I do not think creating the backup there is a good idea. My data size is in that area already and still growing. Please at least stick to making the copy in /opt. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
do not want to open an issue since this is no real bug.
See here:
ProxmoxVE/ct/paperless-ngx.sh
Line 43 in 9710f32
This copies the whole data (which is a lot for my setup) and forces me to double the space for the LXC disk.
Why not moving data aside and then back after update?
Best regards.
PS: @MickLesk, tagging you, since you did change a lot in there the last days. Thank you for taking care to make this even better.
Beta Was this translation helpful? Give feedback.
All reactions