Tuesday 5 July 2011

linux copy retaining permissions

Building my mediawiki on 2 different servers, or should I say replicating from one server to another.


The command is
cp -r --preserve /source_dir /destin_dir

Here -r for copy all inner sub directory, and --preserve for retain the exact file permission.
I will try this tommoz at work.