The restored network connection allows you to transfer files off of the Droplet. From there, you can use option 1 in the recovery ISO to mount your disk image and gain access to your files.
After it completes, mount the filesystem into your environment using option 1 to access your files. You need to access your files this way because the Linux environment is running from the ISO image, not from the Droplet. Once your Droplet is prepared, you can offload your files onto a remote machine like another Droplet or another physical machine. Use the temporary password in the recovery menu when you set up the connection.
You need to use a screen, tmux, or byobu session. You can also chroot into the filesystem to try more advanced recovery steps. For example, this may allow you to start MySQL so you can attempt to export your databases. If you were recovering from file system corruption or other problems and the recovery went well, meaning the Droplet itself is salvageable, you can set the Droplet to boot normally. To boot normally, power off from the command line again:.
Then, back in the control panel, click Recovery and choose the radio button for Boot from Hard Drive. When you power the Droplet back on, it attempts to boot from its own disk. Twitter Reddit Hacker News Facebook. Share link Tutorial share link. Sign Up. DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Launch an Interactive Terminal! About the authors. User data may be defined for images that do not support CloudInit, but it is not consumed automatically on the first boot.
CloudInit accepts cloud-config files or any script that can be interpreted by the new Droplet, such as bash scripts. For help with writing cloud-config files, read our tutorial: An Introduction to Cloud-Config Scripting. Droplets can access the metadata service using the special static IP address This allows you to use similar scripts on different Droplets without needing to change the destination IP address. In Metadata, User data can be provided to a Droplet when it is being created.
User data cannot be modified after a Droplet is created. In both examples, we will create an Ubuntu cloud server and include a bash script that installs Nginx and replaces the contents of index.
Here is the bash script, if you would like to try it yourself:. When creating a Droplet via the DigitalOcean Control Panel, you may check the User data box in the Select additional options section to supply user data. Paste your user data into the form that appears, then select any remaining settings or options for your Droplet. Share link Question share link. Sign Up. Yes, I'm sure. You previously marked this answer as accepted. Are you sure you want to unaccept it?
DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Posted November 15, Add a comment. Subscribe Subscribed. Submit an Answer Submit an answer. Reply Report. Figured it out. Had to navigate to the correct folder. BuddyWorks October 30,
0コメント