pass
This commit is contained in:
parent
f33cf2b967
commit
d2746e7f8f
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
year_month=$(date +%Y%m)
|
||||||
|
backup_date=$(date +%Y%m%d_%H%M)
|
||||||
|
backup_filename="/root/medicine-backups/${year_month}/${backup_date}_database.tar.gz"
|
||||||
|
mkdir -p foo "/root/medicine-backups/${year_month}"
|
||||||
|
docker exec -i medicine-stack-postgres \
|
||||||
|
pg_dump --no-owner -U postgres -F c \
|
||||||
|
medicine > "${backup_filename}" \
|
||||||
|
--exclude-table-data=riisz_logging --exclude-table-data=reversion_*
|
||||||
|
|
||||||
|
echo backup_filename
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
Loading…
Reference in New Issue