I
I
Ivan2020-12-21 15:20:41
Laravel
Ivan, 2020-12-21 15:20:41

For laravel, there is a ready-made solution, so that using the php artisan command ..... make a backup of the database, and deploy it from the backup?

Or do you need to invent your own bikes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Chubarov, 2020-12-21
@Djonson86

This depends on your wishes. But the simplest "bicycle" can be done within 10 minutes.
For example, you have mysql and have the mysqldump utility.
Add commands accordingly , for example:

php artisan backup:run
php artisan backup:refresh

You wrap your mysqldump in them, take the name from the database.php configuration file.

S
Sanes, 2020-12-21
@Sanes

Isn't it easier to do with hosting? How do you imagine deploying a backup from laravel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question