Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
newswangerd committed May 26, 2022
1 parent 78fa042 commit e6a4a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ docker/resetdb: ## Cleans database

.PHONY: docker/db_snapshot
NAME ?= galaxy
docker/db_snapshot: ## Snapshot database. Example: make docker/db_snapshot NAME=my_special_backup
docker/db_snapshot: ## Snapshot database with optional NAME param. Example: make docker/db_snapshot NAME=my_special_backup
docker exec galaxy_ng_postgres_1 pg_dump -U galaxy_ng -F c -b -f "/galaxy.backup" galaxy_ng
mkdir -p db_snapshots/
docker cp galaxy_ng_postgres_1:/galaxy.backup db_snapshots/$(NAME).backup

.PHONY: docker/db_restore
NAME ?= galaxy
docker/db_restore: ## Restore database from a snapshot. Example: make docker/db_restore NAME=my_special_backup
docker/db_restore: ## Restore database from a snapshot with optional NAME param. Example: make docker/db_restore NAME=my_special_backup
docker cp db_snapshots/$(NAME).backup galaxy_ng_postgres_1:/galaxy.backup
docker exec galaxy_ng_postgres_1 pg_restore --clean -U galaxy_ng -d galaxy_ng "/galaxy.backup"

Expand Down

0 comments on commit e6a4a10

Please sign in to comment.