Fixe Quotation marks on database backup files
authorSVNET Libre <svnet@brique.svnet.fr>
Tue, 15 May 2018 20:32:36 +0000 (22:32 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 16 May 2018 07:26:25 +0000 (09:26 +0200)
scripts/upgrade.sh

index 2be7b49df90a2d09f0fa5fee8d473ea55c2669a4..feb3091a81e377abcf2f5feafde794247e88d96f 100755 (executable)
@@ -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"