[support] SOLVED moving site and retaining permission

adept techlists - kazar techlists at ade.pt
Thu Jun 23 09:27:34 UTC 2011


Thanks Earnie -- i will try that one next time I copy my production site 
into the sandbox!


> 	Earnie Boyd <mailto:earnie at users.sourceforge.net>
> June 22, 2011 7:32 AM
>
>
>
> 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.
>
> ------------------------------------------------------------------------
>
> 	adept techlists - kazar <mailto:techlists at ade.pt>
> June 22, 2011 6:09 AM
>
>
> 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'
>
> (since sandbox is a subdomain i use for testing it is actually within
> the public_html folder)
>
> according to
> http://www.freebsd.org/cgi/man.cgi?query=cp&apropos=0&sektion=0&manpath=FreeBSD+8.2-RELEASE&format=html:
>
> also tried adding the -R switch:
>
> cp -Ra public_html/ public_html/sandbox/
> cp: cannot copy a directory, `public_html/', into itself,
> `public_html/sandbox/public_html'
>
>
> what am I doing wrong?
>
> thanks
>
> kazar
>
>
> ------------------------------------------------------------------------
>
> 	Matthias Fechner <mailto:idefix at fechner.net>
> June 14, 2011 7:01 AM
>
>
> Hi,
>
> why not use:
> cp -a <old-dir> <new-dir>
>
> See here for manual page:
> http://www.freebsd.org/cgi/man.cgi?query=cp&apropos=0&sektion=0&manpath=FreeBSD+8.2-RELEASE&format=html
>
> Bye
> Matthias
>
> ------------------------------------------------------------------------



More information about the support mailing list