Metadata-Version: 2.1
Name: dump-it
Version: 0.1
Summary: Simple tool for easy database dumping
Home-page: https://github.com/DevAlone/dump_it
Author: DevAlone
Author-email: dev@d3d.info
License: UNKNOWN
Keywords: database databases postgresql postgres dump dumping
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Provides-Extra: dev
Requires-Dist: check-manifest; extra == 'dev'
Provides-Extra: test
Requires-Dist: coverage; extra == 'test'

# dump_it

Simple tool for easy database dumping(only postgresql is supported yet).

## How to?

* Clone this repository

`git clone https://github.com/DevAlone/dump_it`

* Go to `dump_it` dir

`cd dump_it`

* Create configs

`cp default.conf.py.example default.conf.py`
`cp test.conf.py.example test.conf.py`

Default config is config with global settings, each of which can be overridden in config for database. Example of config for database is test.conf.py.example. You can create as many configs as many databases you have

* Create cron rule

`sudo crontab -e`

```
* * * * * PATH_TO_REPOSITORY/dump.py -c PATH_TO_REPOSITORY > /var/log/dump_it.stdout.log 2> /var/log/dump_it.stderr.log
```

And don't forget to change PATH_TO_REPOSITORY to actual path of where you cloned it. So program will be running every minute, getting configs from repository dir and writing logs to /var/log/dump_it.stdout.log and /var/log/dump_it.stderr.log

Happy dumping!


