aboutsummaryrefslogtreecommitdiff
path: root/content/blog/nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--content/blog/nix/migrating-vaultwarden.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/blog/nix/migrating-vaultwarden.md b/content/blog/nix/migrating-vaultwarden.md
index a095070..1a960c0 100644
--- a/content/blog/nix/migrating-vaultwarden.md
+++ b/content/blog/nix/migrating-vaultwarden.md
@@ -189,11 +189,11 @@ mv srv/vaultwarden /srv/
export BORG_RSH="ssh -i /etc/borg-vaultwarden-db.key"
borg list ssh://borg@gcp.adyxax.org/srv/borg/vaultwarden-db
borg extract ssh://borg@gcp.adyxax.org/srv/borg/vaultwarden-db::dalinar-vaultwarden-db-2023-11-19T00:00:01
+psql -h localhost -U postgres -d vaultwarden
```
Restoring the data itself is done with the psql shell:
-```sh
-psql -h localhost -U postgres -d vaultwarden
+```sql
ALTER USER vaultwarden WITH PASSWORD 'XXXXX';
\i tmp/vaultwarden.sql
```