var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
How to copy one full user directory to another?
If I have /home/user1
user1 contains a public_html directory, which in turn contains many PHP files and a PHPBB forum (with lots of nice MySQL databases.)
I want to copy the entire contents of /home/user1 to /home/user2 (except for quota or password information.)
How would I do this? I assume a simply cp -fR /home/user1 /home/user2 would not work.
I use WHM and I have a my own dedicated server.
You can use
cp -R /home/user1/public_html /home/user2/public_html
chown -R user2:user2 /home/user2/public_html
That will do the job
but regarding dbases , you need to fully backup it via mysqldump and then create a new dbases for user2 and restore it there.
knowledge is Power , Spread it.
AIM:AhmedFouad0 , yahooID:xor2004
Perfect. Thank you!