Backup mechanism MySQL DB

mybackup is shell tool for controlling/operating MySQL server backup.

Developed in bash code: 100%.

mybackup_shell_checker

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.

GitHub issues open GitHub contributors

Table of Contents

Installation

Debian Linux OS

Navigate to release page download and extract release archive.

To install mybackup type the following

tar xvzf mybackup-x.y.tar.gz
cd mybackup-x.y
cp -R ~/sh_tool/bin/   /root/scripts/mybackup/ver.x.y/
cp -R ~/sh_tool/conf/  /root/scripts/mybackup/ver.x.y/
cp -R ~/sh_tool/log/   /root/scripts/mybackup/ver.x.y/

Self generated setup script and execution

./mybackup_setup.sh 

[setup] installing App/Tool/Script mybackup
	Tue 30 Nov 2021 08:05:19 AM CET
[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.2.0/
├── bin/
│   ├── backup.sh
│   ├── center.sh
│   ├── display_logo.sh
│   └── mybackup.sh
├── conf/
│   ├── mybackup.cfg
│   ├── mybackup.logo
│   └── mybackup_util.cfg
└── log/
    └── mybackup.log

3 directories, 8 files
lrwxrwxrwx 1 root root 46 Nov 30 08:05 /root/bin/mybackup -> /root/scripts/mybackup/ver.2.0/bin/mybackup.sh

Or You can use docker to create image/container.

Usage

# Create symlink for shell tool
ln -s /root/scripts/mybackup/ver.x.y/bin/mybackup.sh /root/bin/mybackup

# Setting PATH
export PATH=${PATH}:/root/bin/

# Control/operating MySQL server backup
mybackup help
                                                                                                                                          
mybackup ver.2.0
Tue 30 Nov 2021 08:09:56 AM CET

[check_root] Check permission for current session? [ok]
[check_root] Done

                                                                          
                        ██                        ██                      
                       ░██                       ░██                      
   ██████████   ██   ██░██       ██████    █████ ░██  ██ ██   ██ ██████   
  ░░██░░██░░██ ░░██ ██ ░██████  ░░░░░░██  ██░░░██░██ ██ ░██  ░██░██░░░██  
   ░██ ░██ ░██  ░░███  ░██░░░██  ███████ ░██  ░░ ░████  ░██  ░██░██  ░██  
   ░██ ░██ ░██   ░██   ░██  ░██ ██░░░░██ ░██   ██░██░██ ░██  ░██░██████   
   ███ ░██ ░██   ██    ░██████ ░░████████░░█████ ░██░░██░░██████░██░░░    
  ░░░  ░░  ░░   ██     ░░░░░    ░░░░░░░░  ░░░░░  ░░  ░░  ░░░░░░ ░██       
               ░░                                               ░░        
                                                                          
	                                                   
		Info   github.io/mybackup ver.2.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

Shell tool structure

mybackup is based on MOP.

Shell tool structure

sh_tool/
├── bin/
│   ├── backup.sh
│   ├── center.sh
│   ├── display_logo.sh
│   └── mybackup.sh
├── conf/
│   ├── mybackup.cfg
│   ├── mybackup.logo
│   └── mybackup_util.cfg
└── log/
    └── mybackup.log

Docs

Documentation Status

More documentation and info at

License: GPL v3 License

Copyright (C) 2016 - 2024 by 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.

Free Software Foundation

Donate