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
-rw-rw---- 1 mysql mysql 2970642704 Mar 16 16:54
-rw-rw---- 1 mysql mysql 1289216 Mar 16 18:02
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.
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!