Can I use a snapshot to create a local VM?

June 8, 2014 10.3k views
Is it possible to download a snapshot of a droplet, and use that to set up my own VM locally with say, VIrtual Box? It would greatly simplify some testing stuff for me, so that I can upload it back to DO only when I'm ready. Regards, Tanmai
3 comments
  • I also want to download snapshot my production droplet and use that to set up my local system. I don't think currently there is any way to do this. If you find anyway to do this. Please reply on this comment.

  • I am interested in that too

  • I also have that need. Looking forward to an answer if there is one!

    I my case it is also in order to save money - if I have a droplet that I am not using for a while, I could download it and delete the one in the cloud. When I resume using it later, I can upload it again. That would save me the cost of having an idle droplet in the cloud.

3 Answers
That feature isn't currently available. Though it is on the roadmap. You can follow the progress, and vote to show your support over on DigitalOcean's UserVoice page:

https://digitalocean.uservoice.com/forums/136585-digitalocean/suggestions/3829438-download-snapshot-and-or-backup

http://unix.stackexchange.com/questions/132797/how-to-dd-a-remote-disk-using-ssh-on-local-machine-and-save-to-a-local-disk

If your intent is to backup a remote computer's HDD A via SSH to a single file that's on your local computer's HDD, you could do one of the following...

run from local computer

$ ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz
Have another answer? Share your knowledge.