title: Using a variable in shell script and running as a cron job
body: <p>I have the following script dbbackup.sh</p>
  
  <pre><code>mysqldump -P 3306 -h 436543545.amazonaws.com -u admin--password=goaway mydb &gt; dump-1.sql
  s3cmd put dump-1.sql s3://database-blah-bucket
  rm -f -r dump-1.sql
  </code></pre>
  
  <p>I need to make the following changes</p>
  
  <ol>
  <li>The file to be in the following format (dump-1.sql) is to be <code>dump-dd-mm-yyy-hh-mm.sql</code></li>
  <li>Running the script by <code>sh dbbackup.sh</code> which I need to run as a cron job everyday at 3am</li>
  </ol>
  
  <p>Completely new to UNIX so not sure how to do above</p>