Update README.md

This commit is contained in:
Naum Soloveychik
2020-01-10 22:15:45 +03:00
parent 3567cd8a55
commit fd437e19a6

View File

@@ -8,10 +8,12 @@ Feature rich MySQL / MariaDB backup script.
- `git clone https://github.com/1sept/mysql_backup.git` - `git clone https://github.com/1sept/mysql_backup.git`
- set database `user` and `password` in `.my.cnf` located in user homedir. - set database `user` and `password` in `.my.cnf` located in user homedir.
## Usage ## Example
**Usage:** `mysql_backup.sh -d /var/backup -n daily [-c 10 -s -a -e test@domain.org]` **Usage:** `mysql_backup.sh -d /var/backup -n daily [-c 10 -s -a -e test@domain.org]`
## Options
- **-d , --dir** - **-d , --dir**
backup directory backup directory
- **-n, --name** - **-n, --name**
@@ -27,7 +29,7 @@ compress dump by gzip
- **-q, --quiet** - **-q, --quiet**
- **-h, --help** - **-h, --help**
## setup script in crontab ## Setup script in crontab
`20 01 * * * root /bin/sh /path/to/mysql_backup.sh -d /backup/dir/ -n daily -c 10 -e admin@email.com -a` `20 01 * * * root /bin/sh /path/to/mysql_backup.sh -d /backup/dir/ -n daily -c 10 -e admin@email.com -a`