https://github.com/vroncevic/mybackup
Bash script for backup mechanism [MySQL Databases]
https://github.com/vroncevic/mybackup
administration automation backup bash bsd cli freebsd linux macos modules mysql mysql-database qnx shell unix
Last synced: 2 months ago
JSON representation
Bash script for backup mechanism [MySQL Databases]
- Host: GitHub
- URL: https://github.com/vroncevic/mybackup
- Owner: vroncevic
- License: gpl-3.0
- Created: 2016-04-12T23:19:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T18:59:08.000Z (about 2 years ago)
- Last Synced: 2025-03-28T21:47:00.302Z (about 1 year ago)
- Topics: administration, automation, backup, bash, bsd, cli, freebsd, linux, macos, modules, mysql, mysql-database, qnx, shell, unix
- Language: Shell
- Homepage: https://vroncevic.github.io/mybackup
- Size: 6.79 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Backup mechanism MySQL DB

**mybackup** is shell tool for controlling/operating MySQL server backup.
Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.
[](https://github.com/vroncevic/mybackup/actions/workflows/mybackup_shell_checker.yml)
The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.
[](https://github.com/vroncevic/mybackup/issues) [](https://github.com/vroncevic/mybackup/graphs/contributors)
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Shell tool structure](#shell-tool-structure)
- [Docs](#docs)
- [Copyright and licence](#copyright-and-licence)
### Installation

Navigate to release **[page](https://github.com/vroncevic/mybackup/releases)** download and extract release archive.
To install **mybackup** type the following
```bash
tar xvzf mybackup-3.0.tar.gz
cd mybackup-3.0
cp -R ~/sh_tool/bin/ /root/scripts/mybackup/ver.3.0/
cp -R ~/sh_tool/conf/ /root/scripts/mybackup/ver.3.0/
cp -R ~/sh_tool/log/ /root/scripts/mybackup/ver.3.0/
```
Self generated setup script and execution
```bash
./mybackup_setup.sh
[setup] installing App/Tool/Script mybackup
Sat Dec 13 06:59:04 PM CET 2025
[setup] clean up App/Tool/Script structure
[setup] copy App/Tool/Script structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done
/root/scripts/mybackup/ver.3.0/
├── bin/
│ └── mybackup.sh
├── conf/
│ ├── mybackup.cfg
│ ├── mybackup.logo
│ └── mybackup_util.cfg
└── log/
└── mybackup.log
4 directories, 5 files
lrwxrwxrwx 1 root root 46 Dec 13 06:59 /root/bin/mybackup -> /root/scripts/mybackup/ver.3.0/bin/mybackup.sh
```
Or You can use docker to create image/container.
### Usage
```bash
# Create symlink for shell tool
ln -s /root/scripts/mybackup/ver.3.0/bin/mybackup.sh /root/bin/mybackup
# Setting PATH
export PATH=${PATH}:/root/bin/
# Control/operating MySQL server backup
mybackup help
mybackup ver.3.0
Sat Dec 13 06:59:04 PM CET 2025
[check_root] Check permission for current session? [ok]
[check_root] Done
██ ██
░██ ░██
██████████ ██ ██░██ ██████ █████ ░██ ██ ██ ██ ██████
░░██░░██░░██ ░░██ ██ ░██████ ░░░░░░██ ██░░░██░██ ██ ░██ ░██░██░░░██
░██ ░██ ░██ ░░███ ░██░░░██ ███████ ░██ ░░ ░████ ░██ ░██░██ ░██
░██ ░██ ░██ ░██ ░██ ░██ ██░░░░██ ░██ ██░██░██ ░██ ░██░██████
███ ░██ ░██ ██ ░██████ ░░████████░░█████ ░██░░██░░██████░██░░░
░░░ ░░ ░░ ██ ░░░░░ ░░░░░░░░ ░░░░░ ░░ ░░ ░░░░░░ ░██
░░ ░░
Info github.io/mybackup ver.3.0
Issue github.io/issue
Author vroncevic.github.io
[USAGE] mybackup [OPTIONS]
[OPTIONS]
[OPTION] help
# Get this info
mybackup help
[help | h] print this option
```
### Dependencies
**mybackup** requires next modules and libraries
* sh_util [https://github.com/vroncevic/sh_util](https://github.com/vroncevic/sh_util)
### Shell tool structure
**mybackup** is based on MOP.
Shell tool structure
```bash
sh_tool/
├── bin/
│ └── mybackup.sh
├── conf/
│ ├── mybackup.cfg
│ ├── mybackup.logo
│ └── mybackup_util.cfg
└── log/
└── mybackup.log
```
### Docs
[](https://mybackup.readthedocs.io/projects/mybackup/en/latest/?badge=latest)
More documentation and info at
* [https://mybackup.readthedocs.io/en/latest/](https://mybackup.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)
### Copyright and licence
[](https://www.gnu.org/licenses/gpl-3.0) [](https://opensource.org/licenses/Apache-2.0)
Copyright (C) 2016 - 2026 by [vroncevic.github.io/mybackup](https://vroncevic.github.io/mybackup)
**mybackup** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.
Lets help and support FSF.
[](https://my.fsf.org/)
[](https://my.fsf.org/donate/)