pg_restore
Verified for current stable LTS
Pg Restore Command: Restore Database With Host And Port
Use for restore database with host and port with Pg Restore. Exact CLI syntax to restore database with host and port using Pg Restore.
When to use this: Use for restore database with host and port with Pg Restore.
Command Syntax
pg_restore -h <host> -p <port> -d <db_name> <archive_file.dump> pg_restore -h <host> -p <port> -d <db_name> <archive_file.dump> Command Breakdown
-h- Command Option
- Tool-specific option used by this command invocation.
-p- Command Option
- Tool-specific option used by this command invocation.
-d- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to restore database with host and port using Pg Restore.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Pg Restore Command: Clean Database Before Restore
pg_restore -c -d <db_name> <archive_file.dump> Pg Restore Command: List Database Objects In Archive pg_restore -l <archive_file.dump> Pg Restore Command: Restore Database From Archive pg_restore -d <db_name> <archive_file.dump> Pg Restore Command: Restore Database With Multiple Jobs pg_restore -j <2> -d <db_name> <archive_file.dump> Pg Restore Command: Restore Database With Username pg_restore -U <username> -d <db_name> <archive_file.dump>