Guys im running Rsync 2.6.8 on Solaris. I use the following options :-
RSYNC_BIN="/usr/local/bin/rsync"
RSYNC_OPTS=" -PaRz --quiet --stats --delete --delete-excluded
--copy-unsafe-links --numeric-ids"
RSYNC="${RSYNC_BIN} ${RSYNC_OPTS}"
Its part of a script see.
Now everything works but in my log file im getting each file which is
transferred listed and i didnt want that to occur. Im sure when i was
testing some time ago the --quiet option stopped that type of output.
Anyone any ideas?
I cant just pipe 2 to /dev/null as i want to catch errors
Heres my calling bit see :-
# Check if excluding and change Rsync accordingly
if [ ${remote_exclude_stat:+1} ];then
RSYNC_RUN="${RSYNC}
--exclude-from=${remote_exclude_file}"
else
RSYNC_RUN="${RSYNC}"
fi
## THE BIG RUN ###
${RSYNC_RUN} -e "${SSH}"
root@${remote_get_host}:${RLIST} ${remote_get_localdir} >>
${remote_errorlog} 2>> ${remote_errorlog}
#
# Check each Rsync run was successful or had errors
if [[ ${?} = 0 ]];then
echo "\tStatus..............[Successful]"
>>
${remote_mainlog}
else
echo "\tStatus..............[Suspect]\n\tSee
[${remote_errorlog}]" >> ${remote_mainlog}
fi
On 7/6/07, Dave Markham <dave.markham@fjserv.net> wrote:> Guys im running Rsync 2.6.8 on Solaris. I use the following options :- > > RSYNC_BIN="/usr/local/bin/rsync" > RSYNC_OPTS=" -PaRz --quiet --stats --delete --delete-excluded > --copy-unsafe-links --numeric-ids" > RSYNC="${RSYNC_BIN} ${RSYNC_OPTS}" > > Its part of a script see. > > Now everything works but in my log file im getting each file which is > transferred listed and i didnt want that to occur. Im sure when i was > testing some time ago the --quiet option stopped that type of output.That -P option stands for --partial --progress, and in rsync 2.6.8, --progress seems to override --quiet and cause the filenames to be printed. Replace the -P with --partial, or upgrade to rsync 2.6.9 (in which --quiet appears to override --progress). Matt