Skip to content

Commit cdb84e9

Browse files
Merge pull request #3583 from craigcomstock/db-restore-command-fix
Adjusted backup and restore commands to use long arguments and dbname where needed
2 parents 446f63e + 9a0dab5 commit cdb84e9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

content/web-ui/hub_administration/backup-and-restore.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ restore the history of policy outcomes you must backup and restore.
4343
**Backup:**
4444

4545
```command
46-
pg_dump -Fc cfdb > cfdb.bak
46+
pg_dump --format=c cfdb > cfdb.bak
4747
```
4848

4949
**Restore:**
5050

5151
```command
52-
pg_restore -Fc cfdb.bak
52+
pg_restore --format=c --dbname=cfdb cfdb.bak
5353
```
5454

5555
### Mission Portal
@@ -60,13 +60,13 @@ example shared dashboards.
6060
**Backup:**
6161

6262
```console
63-
# pg_dump -Fc cfmp > cfmp.bak
64-
# pg_dump -Fc cfsettings > cfsettings.bak
63+
# pg_dump --format=c cfmp > cfmp.bak
64+
# pg_dump --format=c cfsettings > cfsettings.bak
6565
```
6666

6767
**Restore:**
6868

6969
```console
70-
# pg_restore -Fc cfmp.bak
71-
# pg_restore -Fc cfsettings.bak
70+
# pg_restore --format=c --dbname=cfmp cfmp.bak
71+
# pg_restore --format=c --dbname=cfsettings cfsettings.bak
7272
```

0 commit comments

Comments
 (0)