Strategy or guides / tutorials for migrating existing LAMP websites?

Hi all,

I’m looking for pointers or links to relevant tutorials/guides regarding migration of existing LAMP sites.

To give some background, we’re moving a bunch of websites from our dedicated LAMP server to a number of cloud VPS hosts, and thought to try to make the installation process a bit more automated at the same time.

I have figured out the general strategy to get the LAMP (or really it is LNMP, as we use Nginx) stack installed using Ansible. What I have a harder time grasping (and also finding material about) is how one would go about migrating database dumps, static files etc between for sites that are already in production.

Specifically we use Drupal and some ProcessWire, but I’m sure the process would be basically the same for most LAMP-based websites (WordPress/Joomla/Mediawiki etc).

So, again, would much appreciate any pointers or links to relevant tutorials or guides regarding migration of existing LAMP sites!

Cheers and many thanks in advance
Samuel

Look at using the synchronize module to rsync your static files from your build/dev environment.

Database dumps are much harder to deal with as I don't believe MySQL has any sort of streaming archiving. I'd suggest using dumps and just restoring from them in your "app deploy" role.

Have a task that checks if a MySQL DB already exists, and if not, pulls the latest dump from wherever.

Thanks a lot Matt! Will look into that!

Cheers
// Samuel