If i restart my droplet, whether my database will be lost?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
@jtittle would killall command shut down all running process then would be safe to reboot?
@hasayoume141 - The best way to issue a restart/reboot is to do so through the CLI. You can use
reboot
or theshutdown
command to perform this task. You won’t lose your database as a result of a restart/reboot, though the potential for corruption exists, especially if there’s reading / writing taking place at the time of action (which can also result in incomplete writes). The best thing to do would be to shutdown services prior to shutting down or rebooting to ensure that reading & writing isn’t taking place at the time the system finally goes down as a result of the command.Use
reboot
through SSH to give it a soft reboot.