title: Laravel Database Backup to Dropbox with Button
body: <p>I install this to my laravel project:</p>
  
  <pre><code>backup-manager/laravel
  league/flysystem-dropbox
  </code></pre>
  
  <p>for i can backup my database to dropbox, but it's can be done by terminal with php artisan, how to make a button on my setting page that when i click, it can call this backup function?</p>
  
  <p>is there a function that i can call to trigger this backup function? or it's just can be done by php artisan?</p>
  
  <p>i try to run</p>
  
  <pre><code>Artisan::call('db:backup');
  </code></pre>
  
  <p>and show error</p>
  
  <pre><code>Maximum execution time of 60 seconds exceeded
  </code></pre>
  
  <p>when i run from terminal it's work fine</p>
  
  <p>how to run this from my controller?</p>
  
  <pre><code>php artisan db:backup --database=pgsql --destination=dropbox --destinationPath=`date +\%d-%m-%Y %H:%i:%s`-digitization.sql --compression=null
  </code></pre>
  
  <p>please someone help me..</p>
  
  <p>this is my script with ajax</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $("#backup").click(function(){
          var url = $(this).data("url");
  
          $.ajax({
              url: url
          }).done(function() {
              alert("asdsad");
          });
      });
  &lt;/script&gt;
  </code></pre>