2 Answers
2

That should mirror the current contents of /var/www/html onto the RAID array.

Some notes:

The mount command might need tweaking, and ultimately you will want to have an entry in /etc/fstab for it. I assume whatever guide you're using to set up the RAID array has got the correct mount and fstab info.

The permissions on /var/www/html are simply what I have here. You might need to adjust them to match your site's existing perms.

The cp command won't copy dotfiles at the top level of your site. If for some strange reason you have a top-level .htaccess file, for example, instead of having the root site config in /etc/httpd somewhere, you'll have to copy that file over by hand. (I could have given you a more complex command that would copy top-level dotfiles, too, but there seems little point.)

Thanks for the answer that helps a lot. I'm using mdadm but I can't find the mdadm.conf anywhere on the system (find doesn't find the file), it's not under /etc/mdadm/ as guides suggest. The array disappears after reboot I think due to he config file problem. I tried creating it under /etc/mdadm but doesn't seem to work.
–
JMCSep 29 '11 at 19:53

1

That would be a different question. If this one is answered correctly, you should accept it and post a new one for your mdadm problem.
–
Warren YoungSep 29 '11 at 21:13