Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 91 bytes) error while trying to backup database
<p>I got Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 91 bytes) error while trying to backup database on online rest server using Codeigniter dbutil backup() function.</p>

<p>Here is my code:</p>

<pre><code>    $this-&gt;load-&gt;dbutil();
    $backup =&amp; $this-&gt;dbutil-&gt;backup(); 
    $this-&gt;load-&gt;helper('file');
    write_file('./uploads/db/mybackup.gz', $backup);
</code></pre>

<p>I can't find out where I am doing wrong. </p>