From 31c504312de7749a4179fde4dd9116f2022f84b8 Mon Sep 17 00:00:00 2001 From: Daniel Quathamer Date: Thu, 2 Dec 2021 18:09:21 +0100 Subject: [PATCH] Sync script for superx2-p --- build.xml | 3 ++- rsync_to_superx.x | 20 ++------------------ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/build.xml b/build.xml index d876708..db64704 100644 --- a/build.xml +++ b/build.xml @@ -1,9 +1,10 @@ diff --git a/rsync_to_superx.x b/rsync_to_superx.x index abf0dd9..830fc01 100755 --- a/rsync_to_superx.x +++ b/rsync_to_superx.x @@ -1,23 +1,7 @@ #!/bin/bash -#Synchronisierung webapp zum Zielserver -#Benutzer Variablen: -#REMOTE_HOST ->Ziel-Hostname -#REMOTE_USER ->Ziel-Benutzerkennung -#REMOTE_DIR -> Zielpfad +#Synchronisierung webapp zum Zielpfad -#TODO: in LOCAL_DIR gelöschte Dateien werden nicht im REMOTE_DIR gelöscht -#TODO: webapps Ordner bei SuperX Platform -if [ "$LOCAL_DIR" = "" ] - then - LOCAL_DIR=`pwd` -fi +ant -DMODULE_PATH=$COSTAGE_PFAD -DBASE_DIR=. -DMODULE=costage all -if [ "$REMOTE_HOST" = "" ] - then - rsync -L -rauvz --delete --include="*/" --include-from=includes.txt.sam --exclude="*" $LOCAL_DIR/WEB-INF/conf/edustore/db/* $REMOTE_DIR/db - else - rsync -L -rauvz --delete --include="*/" --include-from=includes.txt.sam --exclude="*" -e ssh $LOCAL_DIR/WEB-INF/conf/edustore/db/* "$REMOTE_USER"@"$REMOTE_HOST":$REMOTE_DIR/db -fi -