cpio command and schg flags

joeb1 joeb1 at a1poweruser.com
Mon Sep 5 15:49:01 UTC 2011

I am trying to use this code sequence to clone a directory tree.
mkdir /usr/test1
cd /var
find . | cpio -dmp  /usr/test1

The result is  /usr/test1 gets populated with the directory tree but
all the schg flags get stripped off. 

How can I keep the schg flags in the cloned directory?

More information about the freebsd-questions mailing list