fix: changed pgdump for backup to data only
This commit is contained in:
parent
160e1f6ed5
commit
c829cb166e
2
makefile
2
makefile
|
|
@ -46,7 +46,7 @@ postgres:
|
|||
.PHONY: backup
|
||||
backup:
|
||||
@mkdir -p backup
|
||||
@docker exec -t fortunebet-backend-postgres-1 pg_dumpall -c -U root | gzip > backup/dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql.gz
|
||||
@docker exec -t fortunebet-backend-postgres-1 pg_dumpall --data-only -U root | gzip > backup/dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql.gz
|
||||
|
||||
restore:
|
||||
@echo "Restoring latest backup..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user