Fix the backup scripts (cronjob didn't fire for a month...)
This commit is contained in:
parent
ce319408a6
commit
5900c2aa23
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker-compose -f "$(dirname $0)/../docker-compose.yml" exec -u postgres db pg_dump postgres
|
docker-compose -f "$(dirname $0)/../docker-compose.yml" exec -T -u postgres db pg_dump postgres
|
||||||
|
|
||||||
|
@ -3,6 +3,5 @@
|
|||||||
# Usage: rclone-db.sh <remote>:<path>
|
# Usage: rclone-db.sh <remote>:<path>
|
||||||
# eg. rclone-db.sh b2:pluralkit
|
# eg. rclone-db.sh b2:pluralkit
|
||||||
|
|
||||||
FILENAME=pluralkit-$(date +"%Y-%m-%dT%H:%M:%S").sql
|
FILENAME=pluralkit-$(date -u +"%Y-%m-%dT%H:%M:%S").sql.gz
|
||||||
$(dirname $0)/dump-db.sh | rclone rcat $1/$FILENAME
|
$(dirname $0)/dump-db.sh | gzip | rclone rcat $1/$FILENAME
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user