Skip to content

eugine/hillel-java-pro

Repository files navigation

DB Dump

  1. Create a dump
  docker exec -it d6bc4f23a7dc pg_dump -U hillel postgres > dump.sql
  1. Copy the dump from docker image:
    1. docker exec -it cat xxx > dump.sql
    2. docker cp d6bc4f23a7dc:dump.sql dump-xx.sql
  2. drop tables in db
  3. Make sure the dump is in the image:
    1. docker cp dump.sql d6bc4f23a7dc:/tmp/dump.sql
  4. Import the dump:
    1. docker exec -it bash
    2. psql -U hillel < dump.sql

About

Hillel Java Pro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published