View Single Post
  #2 (permalink)  
Old 07-10-2009, 10:44 PM
stan01 stan01 is offline
Registered User
 
Join Date: Jul 2009
Posts: 5
stan01 is on a distinguished road
Hi Jason,

As most Linux programs, cp also needs an argument in order to copy everything.

Ty it this way:

cp -r /home/domain1/www/* /home/domain2/www/

bith this will omit dotfiles. It will be much easier to:

cd /home/domain1/ ; cp -r www/ /home/domain2/

assuming, there isn't www/ in /home/domain2/

and don't forget to chown once the copy is over
Reply With Quote