1830898 Members
2971 Online
110017 Solutions
New Discussion

Re: tar: cannot stat

 
Simon Qu
Frequent Advisor

tar: cannot stat

I got a tar error yesterday:
tar: cannot stat /home/data/CDQUOBX.dat. Not dumped.

What does it mean?
Thank you in advance.
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: tar: cannot stat

It means it couldn't get a lock on that file - so it wasn't backed up.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Simon Qu
Frequent Advisor

Re: tar: cannot stat

Then, how to fix it?
I backup this file every day and it worked fine except yesterday.
Geoff Wild
Honored Contributor

Re: tar: cannot stat

Well, you could do a fuser -cu on the file - to see if any process is using it...

lsof is another good utility....

If there is a process - you may need to stop it (gracefully if you can) via the app that is using it....

Maybe the process didn't release it - when it was supposed to...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Simon Hargrave
Honored Contributor

Re: tar: cannot stat

The application that uses that data file was running. You should shut your application down before the backup in order to have a valid backup.