i guess u mean ./tmp/backup/ edit: after trying ur command it fully corrupted my site by saving all files in the same directroy
–
TDSiiJun 2 '11 at 11:36

if thats the case then you need to mention in the question clearly that you also need the same directory structure to be copied.the question looks vague to answer.
–
Rahul DravidJun 2 '11 at 11:58

why the hell a -1 for this answer?
–
Rahul DravidJun 2 '11 at 12:06

not me for sure and i thank you for trying
–
TDSiiJun 2 '11 at 12:20

1

This answer is WRONG AND DANGEROUS. The first thing the find command will print out is /home/mysite/public_html, which rm will dutifully remove. Even if the find command was amended to exclude directories, any file that wasn't the result of the copy would be deleted, which isn't in the requirement. Furthermore, xargs expects an input format that find doesn't produce, so if there are any files with special characters (whitespace or \'") in their names, xargs will pass unintended names to rm, and files anywhere on the system may be deleted.
–
GillesJun 2 '11 at 17:43