Full backup + restore of a pgsql vw instance

I run VaultWarden from a custom Docker container (it’s actually the official vaultwarden/server:alpine-latest image, that I’ve heavily customized). The back-end is a PostgreSQL container that also runs on my NAS, alongside VaultWarden

I will rewrite my Dockerfile soon, but do not want to lose a single line of data from within.

The PGSQL back-end is already backed-up with external scripts, so I guess I’m safe on that side of things.

I was wondering if backing up the PGSQL back-end was enough ? Do I need to backup other stuff ? the /data directory ? the /web-vault directory ?

How about the restore ? Can I just spin up a new VW container, overwrite /web-vault and /data with the current backed-up data, and connect the container to the current PGSQL instance, and all is good ?

Thanks,

See:

Thanks @BlackDex , my first impulse is always here as I keep forgetting you took the time to maintain a wiki on GH