From 147d5680bff01ee01c5f56d226d211e864f67ed2 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Wed, 8 Jun 2005 03:09:53 +0000 Subject: Documentation patch for bug 274319: Add FAQ regarding how to move a Bugzilla installation; draft by justdave, patch by Shane H. W. Travis , r=colin.ogilvie. --- docs/xml/faq.xml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) (limited to 'docs') diff --git a/docs/xml/faq.xml b/docs/xml/faq.xml index ae3985eeb..544857207 100644 --- a/docs/xml/faq.xml +++ b/docs/xml/faq.xml @@ -743,6 +743,77 @@ perl runtests.pl 2 --verbose + + + + + How do I move a Bugzilla installation from one machine to another? + + + + + + Use mysqldump to make a backup of the bugs database. For a + typical Bugzilla setup, such a command might look like this: + +/usr/bin/mysqldump -u(username) -p(password) --database bugs > bugzilla-backup.txt + + See the + mysqldump documentation for more information on using + the tool, including how to restore your copy onto the destination + machine. + + + + + Depending on the size of your database, and the power of your + machine, the mysqldump command could be running long enough + that the password would be visible to someone using the + ps command. If you are on a multi-user + machine, and this is a concern to you, create an entry in + the file ~/.my.cnf that looks like this: + +[mysqldump] +user=bugs +password=mypassword + + and then leave the 'user' and 'password' params out of the + command line. + + + + + On your new machine, follow the instructions found in as far as setting up the physical + environment of the new machine with perl, webserver, modules, etc. + Having done that, you can either: copy your entire Bugzilla + directory from the old machine to a new one (if you want to keep + your existing code and modifications), or download a newer version + (if you are planning to upgrade at the same time). Even if you are + upgrading to clean code, you will still want to bring over the + localconfig file, and the + data directory from the + old machine, as they contain configuration information that you + probably won't want to re-create. + + + + + If the location or port number of your SQL server changed + as part of the move, you'll need to update the appropriate + variables in localconfig before taking the next step. + + + + + Once you have your code in place, and your database has + been restored from the backup you made in step 1, run + checksetup.pl. This will upgrade your + database (if necessary), rebuild your templates, etc. + + + + -- cgit v1.2.3-24-g4f1b