Displaying 1 result from an estimated 1 matches for "next_r_level".
Did you mean:
next_level
2003 Oct 22
1
Feature Request - Recursive Rsync Parameter - Example Script
...fo.
if [ $test_run ]
then
echo "lrsync: rsync $rsync_options $source_path_parm $dest_path_parm"
rsync $rsync_options $source_path_parm $dest_path_parm
else
rsync $rsync_options $source_path_parm $dest_path_parm
fi
else
# Do lrsync(s)
# Set some variables
next_r_level=$(($r_level - 1))
# Next we have to rsync the top level files in the directory we are going to recurse.
if [ $test_run ]
then
echo "lrsync: rsync $rsync_no_r_options $source_path_parm/* $dest_path_parm/."
rsync $rsync_no_r_options $source_path_parm/* $dest_path_parm/....