Uberspace / lab

The Uberlab provides various tutorials - written by you! - on how to run software and tools on Uberspace 7.
https://lab.uberspace.de
Other
315 stars 414 forks source link

Update guide_vaultwarden.rst #1568

Closed ppac closed 11 months ago

ppac commented 1 year ago

data is stored in ~/vaultwarden/data/ instead of ~/vaultwarden/output/data

noave commented 1 year ago

I cannot really follow your approach here, as far as I see, the command ./docker-image-extract vaultwarden/server:alpine will install the vaultwarden code into the output folder. Is that something you want to change or you just want to put the backup somewhere else?

(I marked the PR as draft please change it back to ready if this is completed from your perspective)

ppac commented 1 year ago

Yes, Vaultwarden itself is installed into the vaultwarden/output-folder. The database is stored in the vaultwarden/data-folder as you can see here:

[isabell@stardust ~]$ export DATA_FOLDER=$HOME/vaultwarden/data

So, from my point of view, there is a need for an adjustment of the paths (which I have done). I've double-checked my own Vaultwarden-instance and there is no data stored in the vaultwarden/output-folder.

escuco commented 1 year ago

I can confirm that the backup won't work with the actual commands and this PR from @ppac makes sense. I hadn't noticed this before because I didn't used the backup in this way before. (tested on my own installation)

ppac commented 1 year ago

That's just the paths, you also need to change the part for the cronjob. I could not use the command in the crontab, but had to create a bash script to do the magic.

kimdiallo commented 11 months ago

works, thank you.