Sammlung von Shellscripten und Werkzeugen zur SuperX/BI Webanwendung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
443 B

2 years ago
#!/bin/bash
#Synchronisierung webapp zum Zielserver
#Benutzer Variablen:
#REMOTE_HOST ->Ziel-Hostname
#REMOTE_USER ->Ziel-Benutzerkennung
#REMOTE_DIR -> Zielpfad
if [ "$LOCAL_DIR" = "" ]
then
LOCAL_DIR=`pwd`
fi
if [ "$REMOTE_HOST" = "" ]
then
2 years ago
rsync -L -rauvz $LOCAL_DIR/WEB-INF/conf/edustore/db/* $REMOTE_DIR/db
2 years ago
else
2 years ago
rsync -L -rauvz -e ssh $LOCAL_DIR/WEB-INF/conf/edustore/db/* "$REMOTE_USER"@"$REMOTE_HOST":$REMOTE_DIR/db
2 years ago
fi