PluralKit/scripts/rclone-db.sh

9 lines
187 B
Bash
Raw Normal View History

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