diff --git a/src/mysql_bkup.sh b/src/mysql_bkup.sh index eda6d79..596ebe8 100755 --- a/src/mysql_bkup.sh +++ b/src/mysql_bkup.sh @@ -82,6 +82,11 @@ flags() [ $# = 0 ] && error "No database name specified" export DB_DATABASE="$1" shift;; + (-p|--port) + shift + [ $# = 0 ] && error "No database name specified" + export DB_PORT="$1" + shift;; (-t|--timeout) shift [ $# = 0 ] && error "No timeout specified"