mirror of https://github.com/Chocobozzz/PeerTube
Update shebang and date to POSIX format for working on FreeBSD (not
tested on Linux)pull/364/head
parent
0960af624e
commit
1069d3a4dc
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Strict mode
|
# Strict mode
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Backup database
|
# Backup database
|
||||||
SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date -Im).bak"
|
SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%h%m\").bak"
|
||||||
mkdir -p /var/www/peertube/backup
|
mkdir -p /var/www/peertube/backup
|
||||||
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
|
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue