Metadata-Version: 2.4
Name: datasette-backup
Version: 0.1.1
Summary: Plugin adding backup options to Datasette
Project-URL: Homepage, https://github.com/simonw/datasette-backup
Project-URL: Issues, https://github.com/simonw/datasette-backup/issues
Project-URL: CI, https://github.com/simonw/datasette-backup/actions
Project-URL: Changelog, https://github.com/simonw/datasette-backup/releases
Author: Simon Willison
License-Expression: Apache-2.0
Classifier: Framework :: Datasette
Requires-Python: >=3.10
Requires-Dist: datasette
Requires-Dist: sqlite-dump>=0.1.1
Description-Content-Type: text/markdown

# datasette-backup

[![PyPI](https://img.shields.io/pypi/v/datasette-backup.svg)](https://pypi.org/project/datasette-backup/)
[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-backup?include_prereleases&label=changelog)](https://github.com/simonw/datasette-backup/releases)
[![Tests](https://github.com/simonw/datasette-backup/workflows/Test/badge.svg)](https://github.com/simonw/datasette-backup/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-backup/blob/main/LICENSE)

Plugin adding backup options to Datasette

## Installation

Install this plugin in the same environment as Datasette.

    $ datasette install datasette-backup

## Usage

Once installed, you can download a SQL backup of any of your databases from:

    /-/backup/dbname.sql

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

    cd datasette-backup
    python3 -mvenv venv
    source venv/bin/activate

Or if you are using `pipenv`:

    pipenv shell

Now install the dependencies and tests:

    pip install -e '.[test]'

To run the tests:

    pytest
