Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unknown error when using cpio

Status
Not open for further replies.

martvar

Programmer
Jan 10, 2005
19
SK
I used cpio command to backup some files,
find . -print | cpio -ov > backup.cpio 2>errmsg
In errmsg I got processed file names
and the end was:
7889920 blocks
1 error(s)
But I couldn't find any error message searching
whole errmsg file.
What error is cpio reporting?
 

It might have to do with the fact that your command is being executed in the directory that you are backing up.

I would try going up one directory level and if, for example, the directory you want to back up is named "keepers", then run the command:

find keepers -print | cpio -ov > backup.cpio 2>errmsg

Does that still have the error message? If so, then it may be that one of the files that you are trying to backup is being written to at the same time you are trying to back it up.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top