What is the best way to duplicate a droplet on your local machine?

What is the best way to ensure that my local environment on my development machine exactly matches my production environment on my DO Droplet? I’m using a LAMP stack with Ubuntu.

I’m currently using XAMPP on my local machine but running into random environment issues because it doesn’t exactly match my DO droplet setup.

Any help anyone can provide would be greatly appreciated. :)


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

DO uses minimal installation images so create a virtual machine in your local system using minimal, like Ubuntu Server (CLI)…

Then use rsync to sync files between your droplet and local server !!