laravel-backup
A package to backup your Laravel app
Laravel Backup is a PHP package for Laravel applications that automates the process of creating backup copies of your app's files and database. When you run the backup command, it collects the files from directories you specify, exports a dump of your database, and packages everything into a single zip file.
You can store backups to any file storage destination that Laravel supports, which includes local disk, Amazon S3, and other cloud storage providers. The package also lets you send backups to multiple destinations at the same time, so a single backup run can land in more than one location.
Beyond creating backups, the package includes a monitoring system that checks whether your backups are healthy: whether they exist, whether they are recent enough, and whether they are above a minimum file size. If a problem is detected, you can receive notifications through various channels such as email or Slack.
To prevent disk space from filling up over time, the package can automatically delete old backups according to rules you configure, keeping recent backups more frequently and older ones less so.
The package is developed by Spatie, a Belgian web agency known for maintaining a large catalog of open-source Laravel packages. It requires PHP 8.4 and Laravel 12 or higher. Documentation and installation instructions are hosted on the Spatie website. It is licensed under MIT.