Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
map_viewer_dump.sh 275 B
#! /bin/bash

echo "Dump of MapViewer war file"

TIMESTAMP=$(date +"%F")
BACKUP_DIR="$BACKUP_DIR/$TIMESTAMP"

mkdir -p "$BACKUP_DIR/map_viewer"
cp $CATALINA_HOME/webapps/MapViewer.war "$BACKUP_DIR/map_viewer/"
cp $CATALINA_HOME/webapps/MapViewer.war $RESTORE_DIR
echo "Done"