Exclude not working

Giuliano Gavazzi dev+lists at humph.com
Mon Jul 9 10:56:18 GMT 2007


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



More information about the rsync mailing list