copying files unde Unix with perms and ACLs (cpio)

The easiest way is to use cpio command as tar does not copy ACL from filesystem.
<code>

mkdir /desitnation/folder
cd /source/folder/path
find . -depth -print | cpio -dumpPv  /desitnation/folder

</code>

‘-P’ – switch is important – copies ACLs

In other case you have to use hand made script which uses getfacl and setfacl commands.
For permissions processing best would be perl which use ’stat’ – for files properties and chmod/chown commands.