Commit 166147f3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

backup creates a folder for backups if necessary

parent 8bfce757
......@@ -5,6 +5,7 @@ BACKUP_DIR="/tmp/backup/"
rm -rdf $BACKUP_DIR
mkdir -p $BACKUP_DIR/tmp
mkdir -p "${BACKUP_FILE%/*}"
cp $CATALINA_HOME/webapps/*.war "$BACKUP_DIR/tmp" 2>/dev/null
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment