2 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
5 <link type=
"text/css" rel=
"stylesheet" href=
"style.css" />
12 <img style=
"border:none" alt=
"Redis Documentation" src=
"redis.png">
16 <div id=
"pagecontent">
18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
19 <b>BgrewriteaofCommand: Contents
</b><br> <a href=
"#BGREWRITEAOF">BGREWRITEAOF
</a><br> <a href=
"#Return value">Return value
</a>
22 <h1 class=
"wikiname">BgrewriteaofCommand
</h1>
29 #sidebar
<a href=
"ControlCommandsSidebar.html">ControlCommandsSidebar
</a><h3><a name=
"BGREWRITEAOF">BGREWRITEAOF
</a></h3>
30 <blockquote>Please for detailed information about the Redis Append Only File check
<a href=
"AppendOnlyFileHowto.html">the Append Only File Howto
</a>.
</blockquote>
31 <blockquote>BGREWRITEAOF rewrites the Append Only File in background when it gets toobig. The Redis Append Only File is a Journal, so every operation modifyingthe dataset is logged in the Append Only File (and replayed at startup).This means that the Append Only File always grows. In order to rebuildits content the BGREWRITEAOF creates a new version of the append only filestarting directly form the dataset in memory in order to guarantee thegeneration of the minimal number of commands needed to rebuild the database.
</blockquote>
32 <blockquote>The
<a href=
"AppendOnlyFileHowto.html">Append Only File Howto
</a> contains further details.
</blockquote>
33 <h2><a name=
"Return value">Return value
</a></h2><a href=
"ReplyTypes.html">Status code reply
</a>