Update shebang and date format for working on FreeBSD (fix typo)

(not tested on Linux)
This commit is contained in:
Gérald Niel 2018-03-19 22:13:29 +01:00
parent 1069d3a4dc
commit f8087a5476

View File

@ -4,7 +4,7 @@
set -e
# 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"