Skip to content

Latest commit

 

History

History
89 lines (61 loc) · 1.91 KB

README.md

File metadata and controls

89 lines (61 loc) · 1.91 KB

mysqlbackup.sh

Bash script to daily backup all your database in gzip with weekly history.

Software License

Table of Contents

Prerequisites

bash

Install

This package can be installed easy.

cd /root/myscript
git clone https://github.com/padosoft/mysqlbackup.sh.git
cd mysqlbackup.sh
chmod +x mysqlbackup.sh

If you want to set your value and override default var values create a mysqlbackup.config file by coping the given template mysqlbackup.config.template, open in your favorite editor and make changes:

cp /root/myscript/mysqlbackup.sh/mysqlbackup.config.template /root/myscript/mysqlbackup.sh/mysqlbackup.config 

nano /root/myscript/mysqlbackup.sh/mysqlbackup.config

If you want to run programmatically, add it to cronjobs manually or execute install script:

cd /root/myscript/mysqlbackup.sh
chmod +x install.sh
bash install.sh

Usage

bash mysqlbackup.sh

Example

bash mysqlbackup.sh

For help:

bash mysqlbackup.sh

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

About Padosoft

Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License

The MIT License (MIT). Please see License File for more information.