title: Logrotate files in multiple sub directories to backup location in same folder structure
body: <p>Im trying to use logrotate with very little experience, Currently working i have the files rotating, compressing and renaming into the same folder. Now i need instead of dropping the files in the same place, i need to have them dropped in another location. They also need to have the same folder structure and if it isn't there than it needs to create the new folder. All the compressed files need to be added and not override the existing files</p>
  
  <p>I'm thinking that the olddir will drop them into a destination folder but not sure on how to have it drop it in the corresponding folder or create it if its not already there.</p>
  
  <p>Example source</p>
  
  <p>var/log/device1/*.log</p>
  
  <p>var/log/device2/*.log</p>
  
  <p>var/log/device3/*.log</p>
  
  <p>Example Destination to drop .gz files into</p>
  
  <p>opt/archive/device1/</p>
  
  <p>opt/archvie/device2/</p>
  
  <p>(needs to create opt/archive/device3 and put rotated file in here)</p>