devopsgroup-io / vagrant-digitalocean

:droplet: A Vagrant provider plugin that manages DigitalOcean droplets.
Mozilla Public License 2.0
1.71k stars 181 forks source link

snapshot, then restart with snapshot image #67

Open esogs opened 10 years ago

esogs commented 10 years ago

In the digital ocean API they allow you to start a box with an image, including a snapshot. I noticed IP82 forked and added the snapshot, is that something you would consider pulling in?

https://api.digitalocean.com/

smdahlen commented 10 years ago

You should be able to specify the snapshot name as the image attribute when configuring a droplet. Let me know if it is not working for you.

On Oct 7, 2013, at 7:08 PM, esogas notifications@github.com wrote:

In the digital ocean API they allow you to start a box with an image, including a snapshot. I noticed IP82 forked and added the snapshot, is that something you would consider pulling in?

https://api.digitalocean.com/

— Reply to this email directly or view it on GitHub.

esogs commented 10 years ago

Yes that works, sorry there was a little more to this. I'm working on a way to have sales staff be able to auto-provision sales demo sites, which would mean the sales team could spin up some drupal sites (sometimes multiple connected), configure them, then store them as a snapshot and be able to bring them up later. It would be helpful if they could do that from Vagrant, including snapshotting them. But to your point, if they told me, I could go take a manual snapshot and configure the Vagrant file to use that image.

smdahlen commented 10 years ago

So if I understand correctly, you are looking for a new, custom command to snapshot (e.g. vagrant snapshot )?

On Oct 8, 2013, at 12:21 PM, esogas notifications@github.com wrote:

Yes that works, sorry there was a little more to this. I'm working on a way to have sales staff be able to auto-provision sales demo sites, which would mean the sales team could spin up some drupal sites (sometimes multiple connected), configure them, then store them as a snapshot and be able to bring them up later. It would be helpful if they could do that from Vagrant, including snapshotting them. But to your point, if they told me, I could go take a manual snapshot and configure the Vagrant file to use that image.

— Reply to this email directly or view it on GitHub.

esogs commented 10 years ago

Yes I think that is it really. Maybe also shapshot delete. Thanks Shawn

On 08.10.2013 10:30, Shawn Dahlen wrote:

So if I understand correctly, you are looking for a new, custom command to snapshot (e.g. vagrant snapshot )?

On Oct 8, 2013, at 12:21 PM, esogas notifications@github.com wrote:

Yes that works, sorry there was a little more to this. I'm working on a way to have sales staff be able to auto-provision sales demo sites, which would mean the sales team could spin up some drupal sites (sometimes multiple connected), configure them, then store them as a snapshot and be able to bring them up later. It would be helpful if they could do that from Vagrant, including snapshotting them. But to your point, if they told me, I could go take a manual snapshot and configure the Vagrant file to use that image.

— Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub [1].

Links:

[1] https://github.com/smdahlen/vagrant-digitalocean/issues/67#issuecomment-25905643

sgarbesi commented 10 years ago

anything with this?

if you're spinning machines up and down you're getting charged full price even when they're not running vs. pennies maintaining the snapshots.

jordanpotter commented 9 years ago

Similar interpretation of the problem: http://blog.burkeware.com/2014/04/freezing-and-thawing-droplets-in-a-digitalocean/

calebmeyer commented 9 years ago

I would love to see a feature that allowed snapshots. I use digital ocean as a minecraft server. If I could snapshot and restore from the last snapshot, I could script/cron vagrant to shut the server down automatically after say 4 hours, saving my server, and destroying the droplet.

excavador commented 8 years ago

What the actual status? I want create/destroy snapshots by vagrant on DigitalOcean, and also create droplets from snapshots