Restore Backups Made With spatie/laravel-backup
"
laravel-backup-restoreis a package to restore database backups made withspatie/laravel-backup. After you've installed it, a newbackup:restore-command is available in your Laravel project.If you just run
php artisan backup:restore, the command will become interactive and will ask for some input. Which backup to restore, the decryption password and a last confirmation to start the restore process.The restore process can also be automated by passing the
--no-interactionoption to the command. Laravel will then use any of the provided options or their default values for the restore process.The package will download the selected backup to your machine, decrypt and decompress it and then import the database dump into your local database. The package currently supports MySQL, PostgreSQL and SQLite.
File backups are not restored. The command would – for example – not replace your local storage/app directory with the folder stored in the backup."
Stefan Zweifel
@stefanzweifel.dev