-
I have Linkwarden running in an LXC on Proxmox that I upgraded to v2.11 via the 'update' helper script today. Everything seemed to go well during the update. No errors and the Linkwarden interface came right up and seemed to work fine. However, after poking around, I started to notice that all of the webpage archives (text, pdf, screenshots) were missing when I tried to open them through Linkwarden. I got 'File not found' for everything I tried to open. I restored from a backup and everything was working as expected. Digging around eventually led me to find that Linkwarden is storing all of the archives in the /opt/linkwarden/data directory and somewhere during the upgrade that directory got removed. I looked through the linkwarden.sh update script and noticed on line 40: The only file that gets preserved prior to the rm is the .env file, which gets moved out of the Linkwarden directory prior to the rm and moved back in once the new source archive is extracted. Shouldn't the same thing happen with the 'data' directory prior to the rm? That way the archived pages would be preserved when upgrading. The other option would be to change the location where Linkwarden stores its data but I don't see an option do do that. For now, I can just do a manual backup of the data folder before upgrading but this seems like an issue with update script. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We will add backing up of the |
Beta Was this translation helpful? Give feedback.
We will add backing up of the
/opt/linkwarden/data
directory to the update function ASAP