LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] cpio restore problem

[ILUG] cpio restore problem

Tony Groves tongro at eircom.net
Tue Mar 21 15:34:34 GMT 2006


I create a backup tape:
   find $BACKUPDIRS | sort | cpio -oBH newc >/dev/st0 2>$LOGPATH

Then I catalogue the tape:
   cpio -tvB </dev/st0 >$TAPECATPATH 2>$LOGPATH
which includes in its output:
   -rw-rw----   1 mysql    mysql        8694 Dec 24 12:18 
/var/lib/mysql/dfs/dockets.frm
   -rw-rw----   1 mysql    mysql    2970642704 Mar 16 16:54 
/var/lib/mysql/dfs/dockets.MYD
   -rw-rw----   1 mysql    mysql     1289216 Mar 16 18:02 
/var/lib/mysql/dfs/dockets.MYI

All looks fine.

Then I try to restore those 3 files:
   cpio -iudBv -H newc "*dockets*" </dev/st0
but I get nothing except eventually an end-of-tape message. I've also
tried several variations on the above command, and previous tapes with
the same format, but nothing works.

Luckily, I had only recently switched from using tar-format tapes,
so I was able to restore from the last tar tape and the subsequent
incremental network backups. However, I would really like to get cpio
working properly, as it is claimed to be more fault-tolerant than tar.

Can anybody provide any suggestions?

Thanks a lot.

Tony.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell