mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(postgresql): add restore command example
This commit is contained in:
@@ -36,7 +36,8 @@ pg_dumpall -h 'host.fqnd' -p '5432' -U 'postgres' -l 'postgres' -W --roles-only
|
|||||||
pg_dumpall -h 'host.fqnd' -p '5432' -U 'postgres' -l 'postgres' -Wrf 'roles.sql' --no-role-passwords
|
pg_dumpall -h 'host.fqnd' -p '5432' -U 'postgres' -l 'postgres' -Wrf 'roles.sql' --no-role-passwords
|
||||||
|
|
||||||
# Restore backups
|
# Restore backups
|
||||||
pg_restore -U 'postgres' -d 'sales' 'sales.bak'
|
pg_restore -U 'postgres' -d 'sales' 'sales.dump'
|
||||||
|
pg_restore -h 'host.fqdn' -U 'master' -d 'sales' -Oxj 8 'sales.dump'
|
||||||
|
|
||||||
# Initialize a test DB
|
# Initialize a test DB
|
||||||
pgbench -i 'test-db'
|
pgbench -i 'test-db'
|
||||||
|
|||||||
Reference in New Issue
Block a user