On 9 Jul 2007, at 08:17, Madhavan Chari wrote:

This is how I am trying to exclude the directories. All the directories have sub-directories also.

E1=/opt/mscdr/arb821/Server/transmissionData
E2=/opt/mscdr/arb821/Server/logs
E3=/opt/mscdr/arb821/Server/temp
E4=/opt/mscdr/arb821/Server/altavista

rsync -az -t -e ssh -vv --delete --exclude $E1 --exclude $E2 -- exclude $E3 --exclude $E4 --delete-excluded --bwlimit=1000 $HOSTTOBACKUP:$SOURCE $TARGET >$tempfile 2>&1

you did not append "/" to your exclude patterns and you did not show us the value of the SOURCE macro. Either might explain the failure.

Giuliano

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to