Update README.md
This commit is contained in:
@@ -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`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user