Hi, I am using RedHat Linux and the cpio version I have is version 2.6. I
use "-f" or "--nonmatching" option to exclude certain files when restoring from
a cpio archive. But, it always restore all files. For example, the cpio
archive contains many directories and files. I want to exclude files or
directories with name "out". I ran
find . -print | cpio -ovBO /tmp/tst.cpio
to create the archive and then cd to different directory and I ran:
cpio -idumB -f out < /tmp/tsc.cpio
to restore the archive and exclude any files with name "out" in it. But it did
not work. What did I do wrong?
Thanks,
Hei Wah