2018-10-11 09:54:04 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Usage: rclone-db.sh <remote>:<path>
|
|
|
|
# eg. rclone-db.sh b2:pluralkit
|
|
|
|
|
2018-11-07 20:16:34 +00:00
|
|
|
FILENAME=pluralkit-$(date -u +"%Y-%m-%dT%H:%M:%S").sql.gz
|
|
|
|
$(dirname $0)/dump-db.sh | gzip | rclone rcat $1/$FILENAME
|