chore(postgresql): add restore command example

This commit is contained in:
Michele Cereda
2024-07-26 20:13:26 +02:00
parent c3d18b2f06
commit adc871b218

View File

@@ -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'