tar issue

frnds,

I compressed some files on the basic of $date var.

$date contains todays date in some specific format..
also my files are in different directories...

now, I m doing.

tar -cvf archive.tar /root/abc/*$date* /root/wxv/123/*$date* /var/*$date*

this creates archive.tar for me..
but the problem is when I extract this...

tar -xvf archive.tar
it gives me nothing...
also, its sure that the archive is valid.. ( I can see the contents with tar -tvf )...

can any1 suggest whats wrong here??

thanks..

Are you looking in the correct directory?

If you see absolute paths in tvf option, try vieweing the files giving complete path.

hi krishmaths,
I can see the full path in tvf option...but those are pointing to the orignal location..
not the files which the archive.tar contain...
coz when I moved the orignal files to some otherplace,,thn I m not able to view the contents of it..

Can you post the output of tar -tvf, at least a portion of it? Let us see if we can infer something from that.

its like listing the files...

$ tar -tvf archive.tar

rw-r--r-- 12015/12015 288 Mar 24 16:02 2008 /opt//daily/input/.stats

rw-r--r-- 12015/12015 288 Mar 24 16:02 2008 /abc.stats