Install bash command

Hello,

I am trying to copy some dirs and files over from one part of my server to the other with groups, owners and permissions so . . .

I am using the command:

install -m <777> -o <owner> -g <group> /<source>/* /<destination>

This works fine for the files but gives me "install: omitting directory" for the directories.

I have tried cp -r /<source>/* <destination>

but this does'nt give me the relevant groups owners etc.

Can anyone help?

Cheers

Dave

You can try the cpio command:

cd source_dir

find * -print | cpio -pvdmu destination_dir

Regards