IT-Academy-BCN / ita-landing-backend

5 stars 1 forks source link

[BE] Database backups automation #72 #76

Closed GabrielaMaureira closed 8 months ago

GabrielaMaureira commented 11 months ago

To perform automatic database backups, I used the Spatie package called laravel-backup, following the instructions provided here. To verify that the database backup is working correctly manually, execute the command: php artisan backup:run. In case of any error, it is necessary to add the following to the MySQL database configuration file:

_'dump' => [ 'dump_binary_path' => '/Applications/XAMPP/bin', //switch to server dump binary path 'use_singletransaction', 'timeout' => 60 * 5, // 5 minute timeout ],

Once the command has been added to kernel.php in the Console directory, indicate the frequency at which it should be executed. Finally, tested email notifications with Mailtrap.

To complete:

sonarcloud[bot] commented 8 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication