Fixe Quotation marks on database backup files

pull/572/head
SVNET Libre 2018-05-15 22:32:36 +02:00 committed by Chocobozzz
parent 136cce4d67
commit ed9118bad0
1 changed files with 1 additions and 1 deletions

View File

@ -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"