mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
fix(postgresql): add note about CLI utils options
This commit is contained in:
@@ -223,6 +223,20 @@ pg_dumpall … --globals-only
|
|||||||
pg_dumpall … -g --no-role-passwords
|
pg_dumpall … -g --no-role-passwords
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> [!important]
|
||||||
|
> Prefer separating command line options from their values via the `=` character than using a space.<br/>
|
||||||
|
> This prevents confusion and errors.
|
||||||
|
>
|
||||||
|
> <details style='padding: 0 0 0 1rem'>
|
||||||
|
>
|
||||||
|
> ```diff
|
||||||
|
> pg_dumpall --no-publications \
|
||||||
|
> - --format d --jobs 4 --exclude-schema archived --exclude-schema bi
|
||||||
|
> + --format='d' --jobs=4 --exclude-schema='archived' --exclude-schema='bi'
|
||||||
|
> ```
|
||||||
|
>
|
||||||
|
> </details>
|
||||||
|
|
||||||
## Restore
|
## Restore
|
||||||
|
|
||||||
Refer [psql] and [pg_restore].
|
Refer [psql] and [pg_restore].
|
||||||
@@ -241,7 +255,8 @@ being restored.
|
|||||||
The archive files are designed to be portable across architectures.
|
The archive files are designed to be portable across architectures.
|
||||||
|
|
||||||
> [!important]
|
> [!important]
|
||||||
> Executing a restore on an online database will very much take if offline.
|
> Executing a restore on an online database will probably introduce conflicts of some kind.
|
||||||
|
> It is very much suggested to take the target offline before restoring.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Restore dumps
|
# Restore dumps
|
||||||
|
|||||||
Reference in New Issue
Block a user