Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update docs (#641)
Leendert de Borst39a263d157f5
diff --git a/docs/misc/dev/browser-extensions.md b/docs/misc/dev/browser-extensions.mdindex d31fc4f6c..c50d9c7cf 100644--- a/docs/misc/dev/browser-extensions.md+++ b/docs/misc/dev/browser-extensions.md@@ -1,12 +1,12 @@---layout: default-title: Browser Extensions+title: Browser extensionsparent: Developmentgrand_parent: Miscellaneousnav_order: 3----# Browser Extensions+# Browser extensionsAliasVault offers browser extensions compatible with both Chrome and Firefox. This guide explains how to build and debug the extensions locally.## Development Setupdiff --git a/docs/misc/dev/postgresql-commands.md b/docs/misc/dev/database-operations.mdsimilarity index 58%rename from docs/misc/dev/postgresql-commands.mdrename to docs/misc/dev/database-operations.mdindex 3796a2717..2384e61ef 100644--- a/docs/misc/dev/postgresql-commands.md+++ b/docs/misc/dev/database-operations.md@@ -1,21 +1,51 @@---layout: default-title: PostgreSQL Commands+title: Database operationsparent: Developmentgrand_parent: Miscellaneous-nav_order: 2+nav_order: 3----# PostgreSQL Commands+# Database operations+This article contains tips for how to work with the AliasVault PostgreSQL database in both production and development environments.-## Backup database to file+## Using install.sh helper methods (recommended)+The `install.sh` script contains helper methods that makes it easy to export and import databases with a simple single command.+++### Export database+```bash+# Export from normal database container (port 5432, production)+./install.sh db-export > aliasvault-db-export.sql.gz++# Export from dev database container (port 5433, development)+./install.sh db-export --dev > aliasvault-db-export.sql.gz+```++### Import database+```bash+# Import to normal database container (port 5432, production)+./install.sh db-import < aliasvault-db-export.sql.gz++# Import to dev database container (port 5433, development)+./install.sh db-import --dev < aliasvault-db-export.sql.gz+```++> Tip: you can also use the optional parameters `--yes` (to skip confirmation prompt) and `--verbose` (to get more output on what the operation is doing).++---++## Using docker commands+Instead of using the `install.sh script, you can also use manual Docker commands.++### Backup database to fileTo backup the database to a file, you can use the following command:```bashdocker compose exec postgres pg_dump -U aliasvault aliasvault | gzip > aliasvault.sql.gz```-## Import database from file+### Import database from fileTo drop the existing database and restore the database from a file, you can use the following command:{: .warning }@@ -27,7 +57,7 @@ docker compose exec postgres psql -U aliasvault postgres -c "CREATE DATABASE aligunzip < aliasvault.sql.gz | docker compose exec -iT postgres psql -U aliasvault aliasvault```-## Change master password+### Change master passwordBy default during initial installation the PostgreSQL master password is set to a random string that isstored in the `.env` file with the `POSTGRES_PASSWORD` variable.diff --git a/docs/misc/dev/index.md b/docs/misc/dev/index.mdindex afa0ce452..faba0e22b 100644--- a/docs/misc/dev/index.md+++ b/docs/misc/dev/index.md@@ -16,8 +16,8 @@ Choose your platform to get started with AliasVault development:## Common Development Topics-- [Browser Extensions](browser-extensions.md)-- [PostgreSQL Commands](postgresql-commands.md)+- [Browser extensions](browser-extensions.md)+- [Database operations](database-operations.md)- [Running GitHub Actions Locally](run-github-actions-locally.md)- [Upgrading EF Server Model](upgrade-ef-server-model.md)- [Upgrading EF Client Model](upgrade-ef-client-model.md)diff --git a/docs/misc/dev/run-github-actions-locally.md b/docs/misc/dev/run-github-actions-locally.mdindex 24a3d1b1a..2bc818453 100644--- a/docs/misc/dev/run-github-actions-locally.md+++ b/docs/misc/dev/run-github-actions-locally.md@@ -1,6 +1,6 @@---layout: default-title: Run GitHub Actions Locally+title: Run GitHub actions locallyparent: Developmentgrand_parent: Miscellaneousnav_order: 9