Skip to content

matheusmartinsdev/docker-restore-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

docker-restore-database

A simple shell script to drop and restore a postgresql database running in a container

The main propourse of the script is restore a PostgreSQL database inside a docker container.

Installation

Just download the resdb file, give to him execution privileges and put this inside your /usr/bin folder.

$ cd /path/to/resdb/file
$ sudo chmod +x ./resdb
$ sudo mv ./resdb /usr/bin/resdb

Usage

resdb [docker-container-name] [postgres-user] [database-name] [pgbkp-filename]

docker-container-name: the name of your docker container
postgres-user: the username in postgresql
database-name: database name
pgbkp-filename: .pgbkp file to be restored inside your database

About

A simple shell script to restore a postgresql database running in a container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages