1
0
Fork 0

Fixe Quotation marks on database backup files

This commit is contained in:
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
# 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
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"