title: shell scripting: moving files to another directory
body: <p><br>
  I have a directory called directory1 to which we store some files daily.<br>
  I first try to remove the previous backup stored in directory2. Then I try to move the files in directory1 to directory2.
  I run the following bash script with cron but seems to fail.<br>
  What is wrong with my code?</p>
  
  <pre><code>#!/bin/sh
  /bin/rm -rf /directory2/*
  /bin/mv /directory1/* /directory2/
  </code></pre>
  
  <p>And my /etc/crontab has the following line:</p>
  
  <pre><code>0 6 * * 6 root /root/scripts/files.move.sh 
  </code></pre>