mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix the backup scripts (cronjob didn't fire for a month...)
This commit is contained in:
parent
ce319408a6
commit
5900c2aa23
2 changed files with 3 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue