Question
Using CLI When Droplet Powered Off
I'm trying to run part of the shell script found at...
https://www.digitalocean.com/community/articles/how-to-scale-your-infrastructure-with-digitalocean
...to be able to take a snapshot. However, the snapshot function within the script returns an error message.
{"status":"ERROR","error_message":"Droplet is currently on. Please power it off to run this event.","message":"Droplet is currently on. Please power it off to run this event."}
So I power off. But since the system is now down, I can't run the shell program via the terminal. In searching for solutions with other articles and finding this one...
https://www.digitalocean.com/community/articles/how-to-use-digitalocean-snapshots-to-automatically-backup-your-droplets
...,it too recommends powering off the droplet first, then to use curl and commands through the CLI .
However, the terminal window, usually available through Digital Ocean, is not viewable when the droplet is off. Nor can I connect through my PC's terminal with ssh.
How does one use CLI/terminal with a droplet powered off?
I'm probably overlooking something simple but can't realize it. Many thanks to an answer.
Add a comment
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.
×