title: Rotate Binary File on Linux
body: <p>I've been trying to use logrotate to rotate a binary file based on size, but the program does not seem to work with binary files. For what it's worth, here's the configuration that I'm using for this specific file:</p>
  
  <pre><code>&lt;filepath&gt; {
    copytruncate
    compress
    missingok
    size 10M
    rotate 100
    nomail
  }
  </code></pre>
  
  <p>Can anyone suggest a program that can handle binary files and has the same basic features as logrotate ?</p>