This Laravel package creates a backup of your application. The backup is a zipfile that contains all files in the directories you specify along with a dump of your database. The backup can be stored on any of the filesystems you have configured. The package can also notifiy you via Mail, Slack or any notification provider when something goes wrong with your backups.
Feeling paranoid about backups? Don’t be! You can backup your application to multiple filesystems at once.
Once installed, making a backup of your files and databases is very easy. Just run this artisan command:
php artisan backup:run
In addition to making the backup, the package can also clean up old backups, monitor the health of the backups, and show an overview of all backups.
If you’re not on PHP 7 or Laravel 5.5 just use version 3 of this package.
Just issue this command:
composer require "spatie/laravel-backup:^5.0.0"
Read the extensive documentation on version 3 to learn how to set up and use the package.
We won’t introduce new features to v3 anymore but we will still fix bugs.