mirror of https://github.com/Chocobozzz/PeerTube
Fixe Quotation marks on database backup files
parent
136cce4d67
commit
ed9118bad0
|
@ -3,7 +3,7 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Backup database
|
# Backup database
|
||||||
SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%H%M\").bak"
|
SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +"%Y%m%d-%H%M").bak"
|
||||||
mkdir -p /var/www/peertube/backup
|
mkdir -p /var/www/peertube/backup
|
||||||
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
|
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue