We will be officially going live with this site on June 3
and retiring the current live site:
Now, the trick for us will be: is there some really simple, slick and easy way to swap these two:
I’m not a super unix nerd, I’m guessing this could be really simple, so this is just a guess and I wanted you pros to comment:
mv /home/htoday/* /home/domains/old.hinduismtoday.com
mv /home/domains/dev.hinduismtoday/* /home/htoday/*
manually rename the folder "old.hinduismtoday.com" to "dev.hinduismtoday.com"
(that will be the only way we can still access the old content, because we used up all 10 of our licenses for virtual domains.
could it be that easy?
Well, ideally, you guys would be checking your website code into a revision control system like Subversion or Git or the like, and you could just instantly pull any version or branch of your code into any directory you like
Barring that –
This command you mentioned is likely to be bad:
1) mv /home/htoday/* /home/domains/old.hinduismtoday.com
Don’t do that
You’re likely to move a lot of things you don’t intend on moving (including the “domains” directory, and any user home directories, breaking email for all of them).
Is everything you’re modifying for the website in the public_html directory?
You could always just move public_html around rather than it’s entire parent directory.
So something like:
Make full backups of your entire server! But this step is unnecessary, because you’re already doing all that, right?
mv /home/htoday/public_html /home/htoday/public_html.old
mv /home/htoday/domains/dev.hinduismtoday/public_html /home/htoday/
mv /home/htoday/public_html.old /home/htoday/domains/dev.hinduismtoday/public_html
Restart Apache when you’re done
I think the above will do the trick, but it never hurts to test this stuff out on a dev system, or perhaps a VMware instance running on your desktop
And again, if you don’t have full and recent backups, you’re asking for trouble
Good luck with the new site!