mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2025-12-07 22:19:42 +01:00
Update README.md
This commit is contained in:
@@ -47,6 +47,8 @@ help()
|
|||||||
echo " |--path -- Set s3 path, without file name"
|
echo " |--path -- Set s3 path, without file name"
|
||||||
echo " -d |--dbname -- Set database name "
|
echo " -d |--dbname -- Set database name "
|
||||||
echo " -p |--port -- Set database port (default: 3306)"
|
echo " -p |--port -- Set database port (default: 3306)"
|
||||||
|
echo " -m |--mode -- Set execution mode (default: default)"
|
||||||
|
echo " |--period -- Set schedule period time (default: '*/30 * * *')"
|
||||||
echo " -t |--timeout -- Set timeout (default: 120s)"
|
echo " -t |--timeout -- Set timeout (default: 120s)"
|
||||||
echo " -h |--help -- Print this help message and exit"
|
echo " -h |--help -- Print this help message and exit"
|
||||||
echo " -V |--version -- Print version information and exit"
|
echo " -V |--version -- Print version information and exit"
|
||||||
@@ -95,12 +97,12 @@ flags()
|
|||||||
shift;;
|
shift;;
|
||||||
(-m|--mode)
|
(-m|--mode)
|
||||||
shift
|
shift
|
||||||
[ $# = 0 ] && error "No Scheduled mode specified"
|
[ $# = 0 ] && error "No execution mode specified"
|
||||||
export EXECUTION_MODE="$1"
|
export EXECUTION_MODE="$1"
|
||||||
shift;;
|
shift;;
|
||||||
(--period)
|
(--period)
|
||||||
shift
|
shift
|
||||||
[ $# = 0 ] && error "No Scheduled period entered"
|
[ $# = 0 ] && error "No schedule period entered"
|
||||||
export SCHEDULE_PERIOD="$1"
|
export SCHEDULE_PERIOD="$1"
|
||||||
shift;;
|
shift;;
|
||||||
(-t|--timeout)
|
(-t|--timeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user