case 4700 - docs: restore when AyaNova connects with its own PostgreSQL user
pg_restore --no-owner --no-privileges --role=<user>, so the restored tables belong to that user (otherwise the integrity check stops AyaNova). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -139,6 +139,16 @@ pg_restore -U postgres -c -d AyaNova ~/downloads/db-20211212195504569.backup
|
|||||||
|
|
||||||
The restore will complete normally without any message if successful.
|
The restore will complete normally without any message if successful.
|
||||||
|
|
||||||
|
#### If AyaNova connects to PostgreSQL with its own user
|
||||||
|
|
||||||
|
The examples above are for the default setup, where AyaNova connects to PostgreSQL as the `postgres` user (the `Username` in [AYANOVA_DB_CONNECTION](ops-config-db.md)). If you have set AyaNova up to connect as a different, dedicated PostgreSQL user, the restored tables must belong to that user: add `--no-owner --no-privileges --role=` followed by that user name to the restore command. For example, for a PostgreSQL user named `ayanova`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pg_restore -U postgres -c --no-owner --no-privileges --role=ayanova -d AyaNova ~/downloads/db-20211212195504569.backup
|
||||||
|
```
|
||||||
|
|
||||||
|
Without these options the restored tables belong to `postgres` and AyaNova will refuse to start with a database integrity error.
|
||||||
|
|
||||||
### Linux server only - set ownershipt and permissions
|
### Linux server only - set ownershipt and permissions
|
||||||
|
|
||||||
Before restarting the AyaNova server on Linux it will first be necessary to reset the ownership and permissions for the files and folders or AyaNova will not be able to write it's log, access attachments or generate reports properly.
|
Before restarting the AyaNova server on Linux it will first be necessary to reset the ownership and permissions for the files and folders or AyaNova will not be able to write it's log, access attachments or generate reports properly.
|
||||||
|
|||||||
Reference in New Issue
Block a user