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.