mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-14 18:56:49 +00:00
8 lines
196 B
Bash
Executable File
8 lines
196 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Usage: script/backup.sh [ofn-staging1|ofn-staging2|ofn-prod]
|
|
|
|
set -e
|
|
|
|
ssh $1 "pg_dump -h localhost -U openfoodweb openfoodweb_production |gzip" > db/backup/$1-`date +%Y%m%d`.sql.gz
|