I'm executing the below command from user directory. user has the directory structure sys/aps/ess/mat/eut/web/cust/org/83422. 83422 directory has 10 files.
tar -cvf xyz.tar sys/aps/ess/mat/eut/web/cust/org/83422/*
It is generating xyz.tar with structure
sys/aps/ess/mat/eut/web/cust/org/83422
but it has only one file and not 10 files.
tried too:
tar -cvf xyz.tar sys/aps/ess/mat/eut/web/cust/org/83422
If you are setting in the sys directory, running "tar cvf xyz.tar sys/aps/ess/mat/eut/web/cust/org/83422 should get you every file in the 83422 directory. If your not in that directory be sure to put the leading slash on it. Are these regular files? Are you using "tar tvf xyz.tar to verify the expected files are not in the tar?
I'm in user directory. If I give tar cvf xyz.tar /sys/aps/ess/mat/eut/web/cust/org/83422 getting unable to open error.
so tar cvf xyz.tar sys/aps/ess/mat/eut/web/cust/org/83422 while creating tar file it is showing all the 10 files like path/filename 2 block..path/filename 2 blocks etc
tar tvf also displaying all the files.
But if I FTP through winscp and view the file in the desktop it is displaying only one file in the desktop
I am sorry I did not get back to you on this. Too late I suspect but here goes. You are correct on the leading slash, I was wrong that would only work if the sys directory was at the root level. If the tar tvf shows all the expected files on the UNIX side then after you get the file moved to the desktop side use something like winzip or a tool that will read tar files and if you don't see the 10 expected files there then my only suggestion is that you may have a firewall of some sort that is stripping out the contents of the tar file. Don't know that much about Firewalls but just a thought. If it only showing you 1 of the 10 files and you can read that one file and it looks to have the correct contents then I will have to bend to someone else�s knowledge on this one.