|
|
|
|
@ -66,7 +66,7 @@ evt_full_rsync(){
@@ -66,7 +66,7 @@ evt_full_rsync(){
|
|
|
|
|
|
|
|
|
|
evt_common_files_rsync(){ |
|
|
|
|
echo "send files from $SOURCE_EVT/common to the destination" |
|
|
|
|
yes | sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "mkdir -p $DESTINATION_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/common/" |
|
|
|
|
yes | sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT -o StrictHostKeyChecking=no "mkdir -p $DESTINATION_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/common/" |
|
|
|
|
sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT -o StrictHostKeyChecking=no" -avz --ignore-existing -f"- */" -f"+ *" $SOURCE_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/common/ $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/common/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -81,7 +81,7 @@ evt_specific_dirs_rsync(){
@@ -81,7 +81,7 @@ evt_specific_dirs_rsync(){
|
|
|
|
|
|
|
|
|
|
fonts_rsync(){ |
|
|
|
|
echo "Send fonts to the destination" |
|
|
|
|
sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "mkdir -p $DESTINATION_PLATFORM_PATH/bin/storage/1/fonts/" |
|
|
|
|
yes | sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "mkdir -p $DESTINATION_PLATFORM_PATH/bin/storage/1/fonts/" |
|
|
|
|
sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT" -avz --ignore-existing $SOURCE_PLATFORM_PATH/bin/storage/1/fonts/ $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/bin/storage/1/fonts/ |
|
|
|
|
} |
|
|
|
|
fonts_rsync |
|
|
|
|
|