From: jocuri%softhome.net <> Date: Wed, 8 Jun 2005 03:08:55 +0000 (+0000) Subject: Documentation patch for bug 274319: Add FAQ regarding how to move a Bugzilla installa... X-Git-Tag: bugzilla-2.18.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8ff6c2ca6cd948d90d0935783a7596c70309416;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/docs/xml/faq.xml b/docs/xml/faq.xml index ae3985eeb2..5448572074 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. + + + +