Discussion Locked

Copying permissions between dir trees

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm trying to find a way to copy permissions from directory tree to another one in hpux. I need this because on one of my oracle installations permissions were corrupted by wrong chmod command recursively. I want to restore permissions by copying acls from good installation to bad one. Using 'cp -rp' isn't a right way because two directory trees aren't fully identical. Thanks in advance.

1 reply

by les

use cpio in pass through mode.

find filestocopy -depth | cpio -pudmv newdirectory

check the man page for cpio, i may have got the options slightly wrong.

This discussion is closed to new replies.