From 31d450e2186bb2e2aa7ebee396e6bac1dd421a01 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Tue, 26 Dec 2023 21:28:39 +0100 Subject: [PATCH] Update README.md --- LICENSE | 21 +++++++++++++++++++++ README.md | 32 +++++++++++++++++++++++++++++++- src/docker/Dockerfile | 3 ++- src/mysql_bkup.sh | 9 ++++++++- 4 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ac320f2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Jonas Kaninda + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 6ba8520..6847eca 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,12 @@ MySQL Backup tool, backup database to S3 or Object Storage ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/jkaninda/mysql-bkup?style=flat-square) ![Docker Pulls](https://img.shields.io/docker/pulls/jkaninda/mysql-bkup?style=flat-square) +

+ + Logo + +

+ > Runs on: - Docker - Kubernetes @@ -23,6 +29,12 @@ MySQL Backup tool, backup database to S3 or Object Storage - local - s3 - Object storage + +## Volumes: + +- /s3mnt => S3 mounting path +- /backup => local storage mounting path + ## Usage | Options | Shorts | Usage | @@ -313,4 +325,22 @@ spec: - name: S3_ENDPOINT value: "https://s3.us-west-2.amazonaws.com" restartPolicy: Never -``` \ No newline at end of file +``` + +## Contributing + +Contributions are welcome! If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request. +Make sure to follow the existing coding style and provide tests for your changes. + +## License + +This project is licensed under the MIT License. See the LICENSE file for details. + +## Authors + +**Jonas Kaninda** +- + +## Copyright + +Copyright (c) [2023] [Jonas Kaninda] diff --git a/src/docker/Dockerfile b/src/docker/Dockerfile index f3428fe..3182314 100644 --- a/src/docker/Dockerfile +++ b/src/docker/Dockerfile @@ -33,4 +33,5 @@ RUN ln -s /usr/local/bin/mysql_bkup.sh /usr/local/bin/mysql_bkup RUN ln -s /usr/local/bin/mysql_bkup.sh /usr/local/bin/bkup RUN mkdir /backup -WORKDIR /backup \ No newline at end of file +WORKDIR /backup +VOLUME /backup \ No newline at end of file diff --git a/src/mysql_bkup.sh b/src/mysql_bkup.sh index 6bf6dfd..5348a2d 100755 --- a/src/mysql_bkup.sh +++ b/src/mysql_bkup.sh @@ -1,4 +1,11 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash + +# MySQL Backup & Restore + +# @author Jonas Kaninda +# @license MIT License +# @link https://github.com/jkaninda/mysql-bkup +# set -e TIME=$(date +%Y%m%d_%H%M%S) MY_SQL_DUMP=/usr/bin/mysqldump