Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

okcupid-message-archiver

Archive Your OkCupid Messages

What?

OkCupid has a limit on the amount of messages that you can store. This will
download all of your messages, store them in a SQL database, and delete them.

Usage

Docker

Provisioning MySQL

Create the DB

This only creates the database. You still need to migrate.

docker run \
  --rm \
  --tty \
  --interactive \
  --env MYSQL_MASTER_SERVICE_HOST=$MYSQL_HOST \
  --env MYSQL_DATABASE=$MYSQL_DATABASE \
  --env MYSQL_PASSWORD=$MYSQL_PASSWORD \
  razic/okcupid-message-archiver \
  exec \
  rake \
  db:create

Migrate the DB

This provisions the database with tables.

docker run \
  --rm \
  --tty \
  --interactive \
  --env MYSQL_MASTER_SERVICE_HOST=$MYSQL_HOST \
  --env MYSQL_DATABASE=$MYSQL_DATABASE \
  --env MYSQL_PASSWORD=$MYSQL_PASSWORD \
  razic/okcupid-message-archiver \
  exec \
  rake \
  db:migrate

Drop the DB

This drops the entire database. Make sure you know what you are doing.

docker run \
  --rm \
  --tty \
  --interactive \
  --env MYSQL_MASTER_SERVICE_HOST=$MYSQL_HOST \
  --env MYSQL_DATABASE=$MYSQL_DATABASE \
  --env MYSQL_PASSWORD=$MYSQL_PASSWORD \
  razic/okcupid-message-archiver \
  exec \
  rake \
  db:drop

Archiving Messages

docker run \
  --rm \
  --tty \
  --interactive \
  --env MYSQL_MASTER_SERVICE_HOST=$MYSQL_HOST \
  --env MYSQL_DATABASE=$MYSQL_DATABASE \
  --env MYSQL_PASSWORD=$MYSQL_PASSWORD \
  --env OKCUPID_USERNAME=$OKCUPID_USERNAME \
  --env OKCUPID_PASSWORD=$OKCUPID_PASSWORD \
  --env DELETE_THREADS=true \
  razic/okcupid-message-archiver
Docker Pull Command
Owner
okcupid
Source Repository

Comments (0)