Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

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 -f $BACKUP_FILE
rm -rdf $BACKUP_DIR
mkdir -p $BACKUP_DIR/tmp
mkdir -p "${BACKUP_FILE%/*}"
CATALINA_HOME="/var/lib/tomcat7"
cp $CATALINA_HOME/webapps/*.war "$BACKUP_DIR/tmp" 2>/dev/null
......
Markdown is supported
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