quiet option doesnt seem to work
Dave Markham
dave.markham at fjserv.net
Fri Jul 6 14:02:54 GMT 2007
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
More information about the rsync
mailing list