Skip to content

A script to help clean exported databases quickly.

Notifications You must be signed in to change notification settings

Weasyl/smallcopy

Repository files navigation

Installation

$ pip install -e .

Configuration

Configuration is read from a config.json in the working directory. Its options are:

  • database

    A PostgreSQL DSN or dict of parameters as accepted by psycopg2.

  • maximum_rating

    The maximum rating of content to export. One of:

    • general
    • mature
    • explicit
  • include

    The users whose data should be exported. Either a list of ids or the string "all" to export data for all users.

Usage

$ pg_dump --file=schema.sql --no-owner --schema-only --schema=public --dbname=$weasyl_db --username=$weasyl_user
$ POSIXLY_CORRECT= patch schema.sql schema.patch
$ python -m weasyl_smallcopy

About

A script to help clean exported databases quickly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages