Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/girardinsamuel/masonite-backups

Easily backup (database and assets) your Masonite projects
https://github.com/girardinsamuel/masonite-backups

Last synced: about 1 month ago
JSON representation

Easily backup (database and assets) your Masonite projects

Awesome Lists containing this project

README

        






Masonite Package

GitHub Workflow Status (branch)
Coveralls github branch
PyPI
Python Version
GitHub release (latest by date)
License
Code style: black

## Introduction

Easily backup (database and assets) your Masonite apps

## Features

- Database (PostgreSQL, SQLite, MySQL) backup
- Assets backup
- Backup upload to defined storage (local, S3...)
- Others to come...

## Official Masonite Documentation

New to Masonite ? Please first read the [Official Documentation](https://docs.masoniteproject.com/).
Masonite strives to have extremely comprehensive documentation 😃. It would be wise to go through the tutorials there.
If you find any discrepencies or anything that doesn't make sense, be sure to comment directly on the documentation to start a discussion!

Also be sure to join the [Slack channel](http://slack.masoniteproject.com/)!

## Installation

```bash
pip install masonite-backups
```

## Configuration

Add BackupsProvider to your project in `config/providers.py`:

```python
# config/providers.py
# ...
from masonite.backups import BackupsProvider

# ...
PROVIDERS = [
# ...
# Third Party Providers
BackupsProvider,
# ...
]
```

Then install OR publish the required package files (configuration, views ...):

```bash
python craft backups:install
```

OR (depending on your preferences)

```bash
python craft publish BackupsProvider
```

Specify sources, destination, name at minimum.

## Usage

To make a backup of all assets and databases defined in config file run this command:

```bash
python craft backups:run
```

To make a backup of databases only:

```bash
python craft backups:run --only-db
```

To make a backup of assets only:

```bash
python craft backups:run --only-assets
```

## Contributing

Please read the [Contributing Documentation](CONTRIBUTING.md) here.

## Maintainers

- [Samuel Girardin](https://www.github.com/girardinsamuel)

## License

Masonite Backups is open-sourced software licensed under the [MIT license](LICENSE).