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”?
- 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
- Simulate CREATE DATABASE IF NOT EXISTS for PostgreSQL?
- Postgresql tables exists, but getting “relation does not exist” when querying
- 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
- What is the difference between LATERAL JOIN and a subquery in PostgreSQL?
- PostgreSQL visual interface similar to phpMyAdmin?
- GROUP BY and COUNT using ActiveRecord
- Does wpdb add considerable overhead on queries with large result sets?
- 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?
- 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
- Copy site from one multisite to another
- WordPress Backup
- Backup another database with BackUpWordPress plugin [closed]
- Backup blog posts only
- How does the WXR file differ from the WPDB?
- Managing Backups: Space Issues [closed]
- WordPress manual restore not completely successful
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Edit page’s “Restore the backup” link does nothing
- If I backup my wordpress blog, how can I back-up all the external images I’ve embedded?
- Delete and perform a fresh install of WordPress
- Restore large number of permanently deleted posts
- Where is phpMyAdmin inside WordPress?
- How can I prevent anyone from logging into a WordPress failover site?
- UpdraftPlus installed malware – scared to download or update plugins now! [closed]
- How to backup my site and restore my wordpress site
- Cannot restore wordpress database from sql dump [closed]
- Backing up an old version of WP before upgrading
- wordpress database restore – broken link
- restore a db after bad backup
- WordPress backup(on another server)leading to old server addy and WP
- Can I restore a plugin that was accidentally deleted? (on localhost)
- Do I need a backup plugin if I’m already backing up via cPanel?
- How to remove symlink from folder
- How do I passively back-up my WordPress websites on a frequent basis? [closed]
- Can an update corrupt my installation?
- Migrate site from local to local via a backup
- How can i restore a WordPress site with the DB and WordPress Files
- Can you Recover a WordPress User from a Backup
- wp-config.php not affecting my site
- 404 on CSS and JS only on Homepage
- Auomated crash recovery?
- back up fully Customized WordPress theme [closed]
- Restoring from a old local copy of xampp folder where the project was stored
- How can I export data without using any import/export plugin
- blank page after update my theme
- How do I find out from my database what version of WordPress I need?
- How to regularly backup and update WordPress website with lot of images?
- Zip all (original) images from media gallery
- Backed up site on localhost affecting live site
- Upgrading from 3.4.2 [duplicate]
- Clone wordpress blog on localbox manually
- Restoring from a Backup after Update
- how to restore wordpress backup(.rar) manually?
- GIT as a backup tool
- Postgres equivalent to MySQL’s \G?
- protocol version mismatch — is your shell clean?
- How to keep the full path with rsync?
- restore backup full content or just specific folders
- How to backup my plugin database [closed]