#!/bin/sh #if [ $# -ne 1 ]; then # echo "-----------------------------------" # echo " Undefined parameter" # echo "./backupApi.sh [application name]" # echo "-----------------------------------" # exit 1 #fi # #if [ ! -f "../$1.jar" ]; then # echo "===================================" # echo " $1.jar file not exist" # echo "===================================" # exit 1 #fi source /applications/adds/bin/stopApi.sh echo "-----------------------------------" echo " adds-api application backup success!" echo "-----------------------------------" mv /applications/adds/adds-api.jar /applications/adds/adds-api.jar_backup