# How to setup automatic database backup - Windows

1. Make sure that MySQL command line tools are installed and added to system variables.
2. Link to download MySQL server if not available `https://dev.mysql.com/downloads/installer`, preferably the version `8.0.*`.
3. Make sure that `mysqldump` is available in the command line by testing `mysqldump` in the command line.
4. Make sure that `php 7.4` is available in the command line by testing `php -v` in the command line.
5. Go to `app\commands\StartDatabaseBackup.php` and set the desired export path in the variable `$exportFilePath`.
6. Start by testing the command `php artisan app:start_database_export`.
7. If the command runs successfully, then add the command to the cron job in linux or task scheduler in windows and do not set a time limit in the task scheduler.


# How to setup automatic database backup - Linux

TBA