pass
This commit is contained in:
parent
2049e224da
commit
c00a7632d5
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
COMMAND="$1"
|
COMMAND="$1"
|
||||||
ARGUMENT="$2"
|
ARGUMENT="$2"
|
||||||
|
|
||||||
|
|
@ -11,7 +13,7 @@ pull_images() {
|
||||||
|
|
||||||
backup_database() {
|
backup_database() {
|
||||||
year_month=$(date +%Y%m)
|
year_month=$(date +%Y%m)
|
||||||
backup_date = $(date %Y%m%d_%H%M)
|
backup_date=$(date +%Y%m%d_%H%M)
|
||||||
mkdir -p foo "/root/medicine-backups/${year_month}"
|
mkdir -p foo "/root/medicine-backups/${year_month}"
|
||||||
docker exec -i medicine-stack-postgres \
|
docker exec -i medicine-stack-postgres \
|
||||||
pg_dump --no-owner -U postgres -F c \
|
pg_dump --no-owner -U postgres -F c \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue