Operating System - HP-UX
1753922 Members
7630 Online
108810 Solutions
New Discussion юеВ

tar cannot stat not dumped

 
SOLVED
Go to solution
support_5
Super Advisor

tar cannot stat not dumped

Dear all,

I know that "cannot stat" errors will occur when tar indexes temporary files of another process, which have disappeared when the time comes to write them. The -
-exclude setting can be used to skip directories where such files occur.

The strange thing is that when we change the permission to 7777 it works even though the tar is being invoked by root.

Anyone got ideas about this?

ta,

Damo
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor

Re: tar cannot stat not dumped

Hi,

What (files/directories?) did you change their permissions to 777?

If these are temporary files and you are able to change their permissions before issuing the tar command, then my guess is that they have not disappeared yet so tar will still be able to read them.

Hope this helps. Regards.

Steven Sim Kok Leong
S.K. Chan
Honored Contributor
Solution

Re: tar cannot stat not dumped

The "cannot stat" means more than that. Take for example if you try to backup an NfS mouned directory or FS that you have limited access to you can also come across this error. So it's obvious in yourcase changing the permission to 777 eliminates the "cannot stat" error.

Steven Sim Kok Leong
Honored Contributor

Re: tar cannot stat not dumped

Hi,

I think what SK mentioned is most likely, since it changing file permissions affects it.

Am wondering why something so obvious never crossed my mind. :|

Regards.

Steven Sim Kok Leong