title: Database backup with cron job
body: <p>I created a backup.sh in /var/www/cronjobs/ where every other cronjobs are:</p>
  
  <pre><code>mysqldump --user root --password=mypass12--opt MYDATABASE \
      &gt; /home/balint/db/db-`date +%Y-%m-%d`.sql
  </code></pre>
  
  <p>in the /etc/crontab I specified the cron just like my other cronjobs:</p>
  
  <pre><code>*/2 * * * * root wget -q -O- http://mydomain.com/cronjobs/backup.sh
  </code></pre>
  
  <p>Not a single file is created in /home/balint/db/
  I created the db folder manually. And I can enter mysql and phpmyadmin with the user root and the password mypass12. The */2 is for testing only, of course.</p>
  
  <p>What am I missing?</p>