Skip to content

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

License

Notifications You must be signed in to change notification settings

padosoft/mysqlbackup.sh

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages