bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] cpio nonmatching option not working


From: Hei Chan
Subject: [Bug-cpio] cpio nonmatching option not working
Date: Fri, 25 Jun 2010 06:51:45 -0700 (PDT)

   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


      



reply via email to

[Prev in Thread] Current Thread [Next in Thread]