#!/bin/sh

#------------------------------------------------------------------------------ 
# Rsync Update Module
# filename:  tx_to_server.sh
# 
#	by Jeremy Webb
#	
#	Rev 1.0, July 25, 2007
#
#	This utility is intended to synchronize remote folders. An example of 
#	using the tx_to_server.sh command is shown below:
#
#	./tx_to_server.sh [user] [mach] [locdir] [remdir]
#
#	Revision History:
#		1.0	07/25/2007	Initial release
#
#	Please report bugs, errors, etc.
#------------------------------------------------------------------------------

if [ $# -ne 4 ]
then 
        echo "Error in $0 - Invalid Argument Count"
        echo ""
        echo "usage: ./tx_to_server.sh [user] [mach] [locdir] [remdir]"
        echo ""
        exit
else
        USER=$1
        REMMACH=$2
        LOCDIR=$3
        REMDIR=$4
        echo "rsync -avz $LOCDIR $USER@$REMMACH:$REMDIR"
        echo ""
        rsync -avz $LOCDIR $USER@$REMMACH:$REMDIR
        echo ""
fi


