I take backup using
pg_dump db_production > postgres_db.dump
and then I copy it to localhost using scp.
Now when I import on my local db it gives an error
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.
by using commad line
pg_restore -d db_development postgres_db.dump
Related Posts:
- PostgreSQL: Show tables in PostgreSQL
- Psql could not connect to server: No such file or directory, 5432 error?
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- What is the format for the PostgreSQL connection string / URL?
- “use database_name” command in PostgreSQL
- Postgresql 9.2 pg_dump version mismatch
- PSQLException: current transaction is aborted, commands ignored until end of transaction block
- psql: FATAL: Ident authentication failed for user “postgres”
- fe_sendauth: no password supplied
- How can I drop all the tables in a PostgreSQL database?
- How to restart PostgreSQL in Ubuntu 18.04
- FATAL: password authentication failed for user “postgres” (postgresql 11 with pgAdmin 4)
- Postgresql: Scripting psql execution with password
- postgresql duplicate key violates unique constraint
- “psql: could not connect to server: Connection refused” Error when connecting to remote database
- How to change PostgreSQL user password?
- No function matches the given name and argument types
- PostgreSQL error: Fatal: role “username” does not exist
- How to change PostgreSQL user password?
- How to exit from PostgreSQL command line utility: psql
- psql: FATAL: database “
” does not exist - eroku “psql: FATAL: remaining connection slots are reserved for non-replication superuser connections”
- Permission denied for relation
- postgres does not know where to find server configuration
- PG COPY error: invalid input syntax for integer
- Postgres: INSERT if does not exist already
- What’s the default superuser username/password for postgres after a new install?
- How to see active connections and “current activity” in PostgreSQL 8.4
- pg_dump and pg_restore: input file does not appear to be a valid archive
- What is this JavaScript “require”?
- What is this JavaScript “require”?
- PostgreSQL “DESCRIBE TABLE”
- How to UPSERT (MERGE, INSERT … ON DUPLICATE UPDATE) in PostgreSQL?
- How to restart Postgresql
- Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
- What is the default password for Postgres
- missing FROM-clause entry for table
- PostgreSQL: Remotely connecting to Postgres instance using psql command
- Simple Random Samples from a Sql database
- Insert text with single quotes in PostgreSQL
- ERROR: there is no unique constraint matching given keys for referenced table “bar”
- Cannot simply use PostgreSQL table name (“relation does not exist”)
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- Simulate CREATE DATABASE IF NOT EXISTS for PostgreSQL?
- could not connect to server: No such file or directory (PG::ConnectionBad)
- Postgresql tables exists, but getting “relation does not exist” when querying
- PG::ConnectionBad: fe_sendauth: no password supplied
- “extra data after last expected column” while trying to import a csv file into postgresql
- postgresql: error duplicate key value violates unique constraint
- psql: command not found Mac
- pg_ctl: no database directory specified and environment variable PGDATA unset
- psql: FATAL: role “postgres” does not exist
- Postgres Error: More than one row returned by a subquery used as an expression
- PostgreSQL: Query has no destination for result data
- What is the difference between LATERAL JOIN and a subquery in PostgreSQL?
- PostgreSQL create table if not exists
- updating table rows in postgres using subquery
- Adb backup does not work
- PostgreSQL visual interface similar to phpMyAdmin?
- java.lang.ClassNotFoundException: org.postgresql.Driver, Android
- GROUP BY and COUNT using ActiveRecord
- Postgresql column reference “id” is ambiguous
- How to extract or unpack an .ab file (Android Backup file)
- What is a postgres superuser
- UpdraftPlus WordPress plugin is not working to store Backup in the Google Drive
- What’s the simplest way to backup my WordPress database?
- Mysqldump add drop table?
- What is a better way to backup files than FTP?
- Backup the Database and Restore from the Backup?
- Does wpdb add considerable overhead on queries with large result sets?
- How to keep a WordPress site synchronized between two servers?
- Problem: Create a cron job to export posts to a WordPress XML file on server
- How do WordPress veterans deal with the issues of upgrading WordPress?
- What is the best method to export local WordPress installation and import to live server?
- Plugin for automatic database backup? [closed]
- Import old SQL dump into new WordPress version
- What is the most comprehensive backup plugin for WordPress (it does not have to be free)? [closed]
- Is It Possible to Restore Accidentally Deleted Widgets?
- Faulty restore of the database, encoding issue
- How to Add Back Buttons to Web Pages [closed]
- How to migrate wordpress users from one blog to another
- Copy site from one multisite to another
- What is the best WordPress plugin for Amazon s3 backups? [closed]
- Does WordPress Import/Export tool actually exports media (images) as well?
- How to clone and locally run a network for testing
- WordPress Backup
- How to backup and restore configurations
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Recover from failed multisite conversion
- How to change Parent Themes in Child Theme CSS
- WordPress and automated MySQL backups to a different host
- How to perform WordPress backups using wp-cli?
- WordPress Admin Interface not styled properly
- Multisite Backup Plugin [closed]
- What is the best practice to get a site from local to online?
- Backup another database with BackUpWordPress plugin [closed]
- Is WooCommerce updates for WordPress necessary? [closed]
- Is it possible to create a WordPress backup by simply copying it?
- Why isn’t my imported database showing up? install.php pops up and adds new tables to the database
- Why are no posts showing despite my apparently correct DB restoration?