I have a GCE instance that I have customised and uploaded various applications to (such as PHP apps running under Apache). I now want to duplicate this instance - i.e. everything on it. I originally thought clone might do this but I had a play around with it and it only seems to clone the instance config and not anything customised on it.
I've been googling it and it looks like what I need to do is create an image and use this image on a new instance or clone? Is that correct? If so, are there any could steps by steps out there to do this? I had a look at the Google page on images and it talks about having to terminate the instance to do this. I'm a bit wary of this. Maybe it's just the language used in the docs, but I don't want to lose my existing instance.
Also, will everything be stored on the image? So, for example, will the following all make it onto the image?
- MySQL - config & databases schemas & data?
- Apache - All installed apps under
/var/www/html - PHP -
php.ini, etc... - All other server configs/modifications?