psql databasename < data_base_dump
That’s the command you are looking for.
Beware: databasename
must be created before importing.
Have a look at the PostgreSQL Docs Chapter 23. Backup and Restore.
More Related Contents:
- Keep PostgreSQL from sometimes choosing a bad query plan
- Copying PostgreSQL database to another server
- Primary keys with Apache Spark
- How can I put a database under git (version control)?
- How do IMMUTABLE, STABLE and VOLATILE keywords effect behaviour of function?
- Store query result in a variable using in PL/pgSQL
- Can I rollback a transaction I’ve already committed? (data loss)
- Kill a postgresql session/connection
- PostgreSQL: Drop PostgreSQL database through command line [closed]
- Do stored procedures run in database transaction in Postgres?
- how to use Blob datatype in Postgres
- How can I solve Postgresql SCRAM authentication problem?
- Convert SQLITE SQL dump file to POSTGRESQL
- Is it better to use multiple databases with one schema each, or one database with multiple schemas? [closed]
- How to login and authenticate to Postgresql after a fresh install?
- PostgreSQL Database Log Transaction
- Connect to a heroku database with pgadmin
- How do I automatically update a timestamp in PostgreSQL
- Starting and populating a Postgres container in Docker
- Adding a new value to an existing ENUM Type
- How can I import a .sql file into my Heroku postgres database?
- Backup/Restore a dockerized PostgreSQL database
- Is it possible to specify the schema when connecting to postgres with JDBC?
- What is the best design for a database table that can be owned by two different resources, and therefore needs two different foreign keys? [closed]
- Spring Security:password encoding in DB and in applicationContext
- How to retrieve the last autoincremented ID from a SQLite table?
- Synchronous database queries with Node.js
- XML data to PostgreSQL database [closed]
- Best representation of an ordered list in a database?
- SQL LIKE operator in Cloud Firestore?