vagrant-digitalocean icon indicating copy to clipboard operation
vagrant-digitalocean copied to clipboard

snapshot, then restart with snapshot image

Open esogs opened this issue 11 years ago • 8 comments

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/

esogs avatar Oct 07 '13 23:10 esogs

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 [email protected] 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.

smdahlen avatar Oct 07 '13 23:10 smdahlen

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.

esogs avatar Oct 08 '13 16:10 esogs

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 [email protected] 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.

smdahlen avatar Oct 08 '13 16:10 smdahlen

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 [email protected] 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

esogs avatar Oct 08 '13 17:10 esogs

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.

sgarbesi avatar Jun 23 '14 00:06 sgarbesi

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

jordanpotter avatar Dec 30 '14 03:12 jordanpotter

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.

calebmeyer avatar Jan 04 '15 03:01 calebmeyer

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

excavador avatar Jan 18 '16 11:01 excavador