Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkurc1/docker_db_backup
App allow to backup mysql database located in docker containers and send it into Object Storage.
https://github.com/mkurc1/docker_db_backup
Last synced: 8 days ago
JSON representation
App allow to backup mysql database located in docker containers and send it into Object Storage.
- Host: GitHub
- URL: https://github.com/mkurc1/docker_db_backup
- Owner: mkurc1
- License: mit
- Created: 2020-07-24T19:24:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T11:20:38.000Z (almost 2 years ago)
- Last Synced: 2024-03-01T20:34:22.196Z (9 months ago)
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Database Backup
It's CLI app which allow to backup mysql database located in docker containers and send it into Object Storage. This app required to work Python 3.7, pip3 and pipenv.
## Install
Pull app from docker
```shell script
$ git clone [email protected]:mkurc1/docker_db_backup.git
```Enter into directory
```shell script
$ cd docker_db_backup
```Create .env file and update data Object Storage configuration
```shell script
$ cp .env.dist .env
```Install dependencies
```shell script
$ pipenv install
```Adds cron config (For example once a day at 3:30 am)
```
30 3 * * * cd //docker_db_backup && pipenv run python src/db_backup.py backup
```## Commands
```
add Add new connection
backup Process backup
edit Edit exist connection
list List of all database connections
remove Remove exist connection
```You can check list of comments by execute:
```shell script
$ pipenv run python src/db_backup.py
```## Configuration
Adds your docker containers name or id into configuration
```shell script
$ pipenv run python src/db_backup.py add
```## License
The App is released under the [MIT License](LICENSE).