added mysql_db_dump script

Dumping single database
This commit is contained in:
Naum Soloveychik
2020-01-12 12:32:41 +03:00
parent 4154252a97
commit cb8ba1843a
3 changed files with 60 additions and 3 deletions

View File

@@ -72,8 +72,7 @@ then
copies=10
fi
if ! [ -d ${dir} ] ; then
if [ "${dir}" = "" ] || [ ! -d ${dir} ] ; then
error "Directory '${dir}' does not exists!" ;
exit 1 ;