diff options
Diffstat (limited to 'scripts/upgrade.sh')
-rwxr-xr-x | scripts/upgrade.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 9baf50932..bd90ce560 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh | |||
@@ -1,10 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # Strict mode | 3 | # Strict mode |
4 | set -e | 4 | set -e |
5 | 5 | ||
6 | # Backup database | 6 | # Backup database |
7 | SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date -Im).bak" | 7 | SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%H%M\").bak" |
8 | mkdir -p /var/www/peertube/backup | 8 | mkdir -p /var/www/peertube/backup |
9 | pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" | 9 | pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" |
10 | 10 | ||