projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
136cce4
)
Fixe Quotation marks on database backup files
author
SVNET Libre
<svnet@brique.svnet.fr>
Tue, 15 May 2018 20:32:36 +0000
(22:32 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Wed, 16 May 2018 07:26:25 +0000
(09:26 +0200)
scripts/upgrade.sh
patch
|
blob
|
history
diff --git
a/scripts/upgrade.sh
b/scripts/upgrade.sh
index 2be7b49df90a2d09f0fa5fee8d473ea55c2669a4..feb3091a81e377abcf2f5feafde794247e88d96f 100755
(executable)
--- a/
scripts/upgrade.sh
+++ b/
scripts/upgrade.sh
@@
-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"