Question

Can I use a snapshot to create a local VM?

Posted June 8, 2014 14.6k 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.

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.

×
2 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
  • @jtenderjb I think many/most droplets have /dev/vda as their drive (my Ubuntu 14.04 and 16.04 droplets all seem to, at least).

  • i use DigitalOcean and use ssh user@remote “dd if=/dev/sda | gzip -1 -” | dd of=/mnt/volume-ams3-03

    as i created a volume and use that to store stuff as its 500GB it works for me dunno how to get to work though

Submit an Answer