Return to parallelstarter.prepare_process_start CVS log | Up to [Local Repository] / badi / public_scripts / parallelstarter / db_backup |
from IVT CVS
db="$(echo "$RUN_ARGS" | sed -e "s/^.*\(-D\|--database\) \([^ ]*\) *-*.*$/\2/")" # for OS X use # db="$(echo "$RUN_ARGS" | sed -E "s/^.*(-D|--database) ([^ ]*) *-*.*$/\2/")" dbhost="$(echo "$RUN_ARGS" | sed -e "s/^.*\(-h\|--host\) \([^ ]*\) *-*.*$/\2/")" # for OS X use # dbhost="$(echo "$RUN_ARGS" | sed -E "s/^.*(-h|--host) ([^ ]*) *-*.*$/\2/")" STARTMSG="Starting backup of DB $db on $dbhost..."