Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 844 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 844 Bytes

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