A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
Changed your mind?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Migrating to DigitalOcean - Step by step howto?
Posted January 19, 20137.7k views
I'm exploring the option of migrating my server over from Linode. It's running LEMP with Ubuntu, and I have things like csf/lfd, logwatch, and phpmyadmin installed. How do I go about migrating everything over as painlessly as possible?
I was hoping for something that didn't involve manually reinstalling software.
For example, I found http://devstructure.com/blueprint/, which is supposed to extract installed applications and settings and spits out a script for me to run on the new server. I've tried it and it seems to work, but I was wondering whether there was something more comprehensive, or alternatively, more painless, since I still have to deal with moving files over and folder permissions.
If I'm not mistaken devstructure/blueprint was started by one of the cofounders of SliceHost specifically to tackle this issue but I'm not sure what the current state.
You could certainly use something like Chef or Puppet that can automate the provisioning of your infrastructure when it comes to applications and configurations, however you will still be responsible for migrating your content.
If you aren't running with Puppet or Chef currently though there are no manifests to build from so you can create a new deployment where you use one or the other to build things out then migrate your data and once you've done this work once you are set to move your infrastructure faster in the future.
As for which one to choose its user preference, my general take, and again this is just opinion, is that Puppet is more DevOps and Developer focused so it hides a bit more of what happens, while Chef is a bit more scripting oriented.
This tutorial covers how to migrate your data and website off of a different VPS provider to DigitalOcean. The basic procedures are the same regardless of where you are migrating from. We discuss some strategies for maintaining data integrity and creating a similar operating environment on a new VPS instance.