The Need for Backup
Generally, any web application must back up its data, including databases and objects. There are many choices available, and we are to present the alternatives.
The Setup
A Laravel project is running in a server such as a Droplet in Digital Ocean or an EC2 Instance in AWS EC2.
There is a weekly backup of the droplet by Digital Ocean.
The project is a platform for auctions, so auctioneers and users upload media files, such as images.
All uploaded media files are stored in Digital Ocean Spaces.
The project is deployed and managed with Laravel Forge.
What Do We Backup?
We are using object storage for uploaded media files. Object storage in the public clouds already has redundancy and availability, so we do not need to worry about backup for media files.
So we need to take care of database backup only.
How Do We Backup?
Laravel Backup can back up your database at whatever frequency you choose to object storage.
Now you can have three common ways where your database may reside:
- On the application…