Commit 3d1dfbd6 authored by Gabriel O'Brien's avatar Gabriel O'Brien
Browse files

adding basic usage notes from wiki

parent fe677a50
a simple script to dump and rotate MariaDB backups
## Usage
# Document functionality and args.
This script can be used to dump a MariaDB (or MySQL) database to disk and to rotate through a given number of backups. It supports two command line arguments:
* **-q** run silently (for use in crontabs or other non-interactive settings)
* **-k *n*** number of recent backups to keep (default is 7)
The script assumes that backup user has a ~/.my.cnf file storing the database connection (or passwordless access to the database as the current userid). It's a good idea to create a MariaDB user that has the appropriate permissions for dumping databases instead of running this script as the unix root user.
## Configuration variables and options
## set default variables
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment