tar exclude list

I have solaris 8, I want to create tar for all files under this directory structure
#/export/home/atg/Dynamo/home
There is a subdirectory under this tree called servers/supersds/logs
I want to exclude logs subdirectory so I created exclude list which contains

servers/supersds/logs

But tar is still picking up logs subdirectory and everything under it, where is my syntax wrong please advise.
The command I am using is

/export/home/atg/Dynamo/home#tar cvfX java02may08.tar exclude *

Dunno... but it works for me...

# cat exclude
acct/fiscal
#
#
# tar cvfX dummy.tar exclude acct
a acct/ 0K
a acct/fiscal excluded
a acct/nite/ 0K
a acct/sum/ 0K
#
#

Hi Tirmazi,

"*" does NOT work here....So include "home" to the exclude list and come out of "home" directory.

Do as below:

  1. create exclude list containing

home/servers/supersds/logs

  1. # cd /export/home/atg/Dynamo/
    /export/home/atg/Dynamo# tar cvfX java02may08.tar exclude home

Good Luck!