Need help to create ACL

Hi,
I generated a script that will create the list of dir/sub-dir and will allow to create the same on diff server. this is what i have done :

#!/bin/ksh
# Script to migrate the directory between the two servers.
# Ver 0.1
# Author Krishna. D
# c - create and e - extract directory
if [ $# -ne 2 ]; then
echo "Pls Use this Format dirmigr.ksh Directory Name Type [c/e]"
fi
if [ $2 = "c" ]; then
`find $1 -type d > dirlist.txt`
fi

if [ $2 = "e" ]; then
for strDir in `cat dirlist.txt`
do
mkdir -p $strDir
done
fi

Now i need to capture the ACL entries also along with dir's and need to grant them while creating the dir.

can anyone gimme some idea.

Thanks in advance.

Krishna

Check out the chacl man page first.

Also be aware that ACL's may not be captured to backup using some older backup tools.