Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 4e237fd705495e1e21ef20696443e053 > files > 975

bugzilla-5.0.4-3.mga7.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>3.12. Backups &#8212; Bugzilla 5.0.4 documentation</title>
    <link rel="stylesheet" href="../_static/bugzilla.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '5.0.4',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="3.13. Sanity Check" href="sanity-check.html" />
    <link rel="prev" title="3.11.6. Upgrading a Customized or Extended Bugzilla" href="upgrading-customizations.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="sanity-check.html" title="3.13. Sanity Check"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="upgrading-customizations.html" title="3.11.6. Upgrading a Customized or Extended Bugzilla"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">Bugzilla 5.0.4 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">3. Installation and Maintenance Guide</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="backups">
<span id="id1"></span><h1>3.12. Backups<a class="headerlink" href="#backups" title="Permalink to this headline">¶</a></h1>
<div class="section" id="database">
<h2>3.12.1. Database<a class="headerlink" href="#database" title="Permalink to this headline">¶</a></h2>
<p>Here are some sample commands you could use to backup
your database, depending on what database system you're
using. You may have to modify these commands for your
particular setup. Replace the $VARIABLEs with appropriate values for your
setup.</p>
<div class="section" id="mysql">
<h3>3.12.1.1. MySQL<a class="headerlink" href="#mysql" title="Permalink to this headline">¶</a></h3>
<p><strong class="command">mysqldump --max-allowed-packet=32M -u $USERNAME -p $DATABASENAME &gt; backup.sql</strong></p>
<p>The value for <strong class="command">max-allowed-packet</strong> should be the value you've set in
your <a class="reference internal" href="mysql.html#mysql"><span class="std std-ref">MySQL configuration file</span></a>, and should be larger than the
largest attachment in your database. See the
<a class="reference external" href="http://dev.mysql.com/doc/mysql/en/mysqldump.html">mysqldump documentation</a>
for more information on <code class="file docutils literal"><span class="pre">mysqldump</span></code>.</p>
</div>
<div class="section" id="postgresql">
<h3>3.12.1.2. PostgreSQL<a class="headerlink" href="#postgresql" title="Permalink to this headline">¶</a></h3>
<p><strong class="command">pg_dump --no-privileges --no-owner -h localhost -U $USERNAME &gt; bugs.sql</strong></p>
</div>
</div>
<div class="section" id="bugzilla">
<h2>3.12.2. Bugzilla<a class="headerlink" href="#bugzilla" title="Permalink to this headline">¶</a></h2>
<p>The Bugzilla directory contains some data files and configuration files which
you would want to retain. A simple recursive copy will do the job here.</p>
<p><strong class="command">cp -rp $BUGZILLA_HOME /var/backups/bugzilla</strong></p>
<hr class="docutils" />
<p>This documentation undoubtedly has bugs; if you find some, please file
them <a class="reference external" href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&amp;component=Documentation">here</a>.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../index.html">
              <img class="logo" src="../_static/bugzilla.png" alt="Logo"/>
            </a></p>
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">3.12. Backups</a><ul>
<li><a class="reference internal" href="#database">3.12.1. Database</a><ul>
<li><a class="reference internal" href="#mysql">3.12.1.1. MySQL</a></li>
<li><a class="reference internal" href="#postgresql">3.12.1.2. PostgreSQL</a></li>
</ul>
</li>
<li><a class="reference internal" href="#bugzilla">3.12.2. Bugzilla</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="upgrading-customizations.html"
                        title="previous chapter">3.11.6. Upgrading a Customized or Extended Bugzilla</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="sanity-check.html"
                        title="next chapter">3.13. Sanity Check</a></p>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="sanity-check.html" title="3.13. Sanity Check"
             >next</a></li>
        <li class="right" >
          <a href="upgrading-customizations.html" title="3.11.6. Upgrading a Customized or Extended Bugzilla"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">Bugzilla 5.0.4 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="index.html" >3. Installation and Maintenance Guide</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6.
    </div>
  </body>
</html>