Backup or Snapshot My Droplet

Hi Every one,

Kindly i have a droplet that i run my mobile app API backend on using (Laravel-Lumen + MYSQL DB) i need to update some of my API functions + run new migrations on the database, just wanna make sure that in case any thing goes wrong during my updates i can roll back to my droplet + all backend data.

So what is the best approach to this backup my droplet? or take a snapshot for it?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Simon Bennett
DigitalOcean Employee
DigitalOcean Employee badge
January 3, 2021
Accepted Answer

Hello @Appsdev85

I always before a backup before running large Laravel migrations so good thinking.

So the snapshot will do a full backup of the server which will cover the application code and the database before the migration. If goes wrong you will be able to restore the droplet to that point.

It may be worth also taking a database backup too, if your using Git rolling the code back will be easy but the database is more complex and restoring a backup can be the easiest way. You can do this via a MySQL GUI like phpmyadmin, table plus, sequalpro (depending on the database size for if this is practical) or you could use MySQLdump. I have a guide on our website for how to do all sorta tricks and tips for MySQLDump and how to copy them from the server to your local machine


Any questions feel free to hit me up love to help people with backups.

Simon Founder and CEO - SnapShooter DigitalOcean Backups + Laravel Backups

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel