title: Backup database in Laravel 8
body: <p>Am using <a href="https://spatie.be/docs/laravel-backup/v7/introduction" rel="nofollow noreferrer">https://spatie.be/docs/laravel-backup/v7/introduction</a> for backup and I tried to backup database using <code>php artisan backup:run</code> but i got these errors:</p>
  <pre><code>Backup failed because The dump process failed with exitcode 2 : Misuse of shell builtins : sh: 1: /opt/lampp/bin/mysql/mysqldump: not found
  
  Sending notification failed
  Backup failed because: The dump process failed with exitcode 2 : Misuse of shell builtins : sh: 1: /opt/lampp/bin/mysql/mysqldump: not found
  .
  
     Swift_RfcComplianceException 
  
    Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
  
    at vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:355
      351▕      */
      352▕     private function assertValidAddress($address)
      353▕     {
      354▕         if (!$this-&gt;emailValidator-&gt;isValid($address, new RFCValidation())) {
    ➜ 355▕             throw new Swift_RfcComplianceException('Address in mailbox given ['.$address.'] does not comply with RFC 2822, 3.6.2.');
      356▕         }
      357▕     }
      358▕ }
      359▕ 
  
        +38 vendor frames 
    39  artisan:37
        Illuminate\Foundation\Console\Kernel::handle()
  
  </code></pre>
  <p>What should I do ?</p>
  <p>I think the problem is in database.php in this code</p>
  <pre><code>'dump' =&gt; [
                  'dump_binary_path' =&gt; '/opt/lampp/bin/mysql', // only the path, so without `mysqldump` or `pg_dump`
                  'use_single_transaction',
                  'timeout' =&gt; 60 * 5, // 5 minute timeout
        ],
  </code></pre>
  <p>Where can I find mysqldump on lampp Ubuntu ?</p>
  <p><strong>PS:</strong> I am using laravel 8 on Ubuntu</p>