diff --git a/scripts/rclone-db.sh b/scripts/rclone-db.sh index d15f0f44..6e4fda7c 100755 --- a/scripts/rclone-db.sh +++ b/scripts/rclone-db.sh @@ -4,4 +4,12 @@ # eg. rclone-db.sh b2:pluralkit FILENAME=pluralkit-$(date -u +"%Y-%m-%dT%H:%M:%S").sql.gz -$(dirname $0)/dump-db.sh | gzip | rclone rcat $1/$FILENAME + +echo Dumping database to /tmp/$FILENAME... +$(dirname $0)/dump-db.sh | gzip > /tmp/$FILENAME + +echo Transferring to remote $1... +rclone -P copy /tmp/$FILENAME $1 + +echo Cleaning up... +rm /tmp/$FILENAME \ No newline at end of file