Snapshot droplet without downtime?
I’ve seen comments throughout this community that droplets sized 1gb or greater can create a snapshot without first bringing the droplet offline. This appears to not actually be the case, so, assuming this, is there a recommended way of knowing when a droplet has been turned off so that the snapshot can occur, all through the API?
Obviously I could poll the droplet via the API and check when the status of the droplet changes. Same goes for the actual snapshot creation (to get the new ID). Is there a better way?
The use case here is scaling horizontally, where a simple
git pull isn’t enough to make sure all servers are in sync (there are symlinked files, assets, conf files, etc.)
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.