title: How to zip 90days old files and move it to a specific folder using bash in linux
body: <p>I have lots of files in my FILES folder. I want to zip the files that are 90days old then remove it from the FILES folder and move it to the ARCHIVES folder using bash in linux.</p>
  
  <p>This is my folder structure:</p>
  
  <p>root@user:/var/FILES</p>
  
  <p>root@user:/var/ARCHIVES</p>
  
  <p>I have created a script to zip a file but don't know how to specify the age of the file</p>
  
  <pre><code>zip -r zipped.zip *.*
  </code></pre>
  
  <p>so i coded something like</p>
  
  <pre><code>FILE=find *.* -mtime +90
  zip -r zipped.zip $FILE
  </code></pre>
  
  <p>but only returns error. Thanks</p>