[support] SOLVED moving site and retaining permission
Earnie Boyd
earnie at users.sourceforge.net
Wed Jun 22 11:32:40 UTC 2011
adept techlists - kazar wrote:
> I just tried this suggestion using:
>
> cp -a public_html/ public_html/sandbox
> cp: cannot copy a directory, `public_html/', into itself,
> `public_html/sandbox/public_html'
>
If it would allow that it would cause an infinite recursion. To resolve
you need to do:
cp -a public_html/* public_html/sandbox/
This will cause the contents of public_html to be copied and not
public_html itself. The added / on the end of sandbox ensures that you
are copying to a directory otherwise you run the risk of copying the
contents to a file which is pointless.
--
Earnie
-- http://progw.com
-- http://www.for-my-kids.com
More information about the support
mailing list