diff options
-rwxr-xr-x | scripts/upgrade.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 2be7b49df..feb3091a8 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh | |||
@@ -3,7 +3,7 @@ | |||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | # Backup database | 5 | # Backup database |
6 | SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%H%M\").bak" | 6 | SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +"%Y%m%d-%H%M").bak" |
7 | mkdir -p /var/www/peertube/backup | 7 | mkdir -p /var/www/peertube/backup |
8 | pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" | 8 | pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" |
9 | 9 | ||