bzrmirror%bugzilla.org 3ca9302db4 Bug 1107310 - Mention max_allowed_packet in mysqldump section. r=LpSolit, a=glob
git-svn-id: svn://10.0.0.236/trunk@265843 18797224-902f-48f8-a5cc-f745e15eee43
2015-03-05 11:45:50 +00:00

39 lines
1.0 KiB
ReStructuredText

.. _backups:
Backups
#######
Database
========
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.
MySQL
-----
:command:`mysqldump --max-allowed-packet=32M -u $USERNAME -p $DATABASENAME > backup.sql`
The value for :command:`max-allowed-packet` should be the value you've set in
your :ref:`MySQL configuration file <mysql>`, and should be larger than the
largest attachment in your database. See the
`mysqldump documentation <http://dev.mysql.com/doc/mysql/en/mysqldump.html>`_
for more information on :file:`mysqldump`.
PostgreSQL
----------
:command:`pg_dump --no-privileges --no-owner -h localhost -U $USERNAME > bugs.sql`
Bugzilla
========
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.
:command:`cp -rp $BUGZILLA_HOME /var/backups/bugzilla`