Set up servers now then take offline to use later

October 7, 2017 107 views
Node.js Nginx Ubuntu 16.04

I want to set up everything (MERN stack) and then take it all offline and upload or call back the configs later on when I am ready to deploy. Ideally I could download them then reupload when needed to save on the minimal cost

3 Answers

You could set up your droplet, then take a snapshot, destroy the server. In the future you can create droplet from image.

You then just have to pay 5cent per GB per month for the snapshot storage. So small snapshots are cheap

Hello @jakirby ,

You can't download the DO droplet, so you would have to keep it as a snapshot/offline droplet. This means that you would have to pay for the snapshot or droplet. I guess you don't want this, so as an alternative I recommend Docker.

You could setup a droplet with docker, configure your environment and then upload the docker container to the docker hub. After that you can download the container later on, on any VPS/Droplet/Dedicated machine you whish. Hope this helps you ;)

As other's have mentioned, you could make use of the snapshot feature for storing the current state of a droplet as an image, then create a new droplet from that saved image at a later date when needed (note the small fee on saved snapshots).

Failing that, use of Docker and or a configuration management tool like Ansible would take some learning investment, but be very beneficial for these purposes you describe.

There are two methods for installing Docker on Ubuntu 16.04. One method involves installing it on an existing installation of the operating system. The other involves spinning up a server with a tool called Docker Machine that auto-installs Docker on it. In this tutorial, you'll learn how to install and use it on an existing installation of Ubuntu 16.04.
Have another answer? Share your knowledge.