Displaying 1 result from an estimated 1 matches for "rsync_no_r_opt".
2003 Oct 22
1
Feature Request - Recursive Rsync Parameter - Example Script
...ing help, fifth parm will echo args
if [ -n "$5" -a "$5" = "args" ]
then
for arg in "$@"
do
echo "Arg #$index = $arg"
done
fi
# Assign parameters to some variables.
r_level=$1
rsync_options=$2
source_path_parm=$3
dest_path_parm=$4
rsync_no_r_options=`echo $rsync_options | sed -e "s/r//" | sed -e "s/a/lptgoD/"`
# Let's support the rsync test mode.
test_run=`echo $rsync_options | grep n`
# We need to decide if the source is a remote host
# Parse out the <source path> and if it is remote, capture the hostname...