[Bro-Dev] [Bro-Commits] [git/bro] fastpath: Redo the "how to upgrade" FAQ. (06d6277)
Daniel Thayer
dnthayer at illinois.edu
Wed Oct 3 14:29:46 PDT 2012
It seems to me that this info should be in the "Installing Bro"
document, since upgrading from a previous version will be a
very common scenario.
On 10/03/2012 04:15 PM, Jonathan Siwek wrote:
> Repository : ssh://git@bro-ids.icir.org/bro
>
> On branch : fastpath
> Link : http://tracker.bro-ids.org/bro/changeset/06d6277f0aa97836b9c25f7aa97fdf8549fd7da9/bro
>
>> ---------------------------------------------------------------
>
> commit 06d6277f0aa97836b9c25f7aa97fdf8549fd7da9
> Author: Jon Siwek <jsiwek at ncsa.illinois.edu>
> Date: Wed Oct 3 16:14:52 2012 -0500
>
> Redo the "how to upgrade" FAQ.
>
>
>> ---------------------------------------------------------------
>
> 06d6277f0aa97836b9c25f7aa97fdf8549fd7da9
> doc/faq.rst | 41 +++++++++++++++++++++++++++++++++++------
> 1 files changed, 35 insertions(+), 6 deletions(-)
>
> diff --git a/doc/faq.rst b/doc/faq.rst
> index 1836e5a..2342af1 100644
> --- a/doc/faq.rst
> +++ b/doc/faq.rst
> @@ -12,13 +12,42 @@ Frequently Asked Questions
> Installation and Configuration
> ==============================
>
> -What files will get overwritten when upgrading/installing a new Bro version?
> -----------------------------------------------------------------------------
> -
> -Expect everything except things in ``$prefix/share/bro`` and
> -``$prefix/etc`` to be overwritten, but backing up the entire ``$prefix``
> -before upgrading is good practice (``$prefix`` indicating the root of
> -where Bro was installed).
> +How do I upgrade to a new version of Bro?
> +-----------------------------------------
> +
> +There's two suggested approaches, either install Bro using the same
> +installation prefix directory as before, or pick a new prefix and copy
> +local customizations over.
> +
> +Re-Use Previous Install Prefix
> +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> +
> +If you choose to configure and install Bro with the same prefix
> +directory as before, local customization and configuration to files in
> +``$prefix/share/bro/site`` and ``$prefix/etc`` won't be overwritten
> +(``$prefix`` indicating the root of where Bro was installed), but making
> +a backup of local changes before proceeding is recommended. Also, logs
> +generated at run-time won't be touched by the upgrade.
> +
> +After upgrading, remember to check ``$prefix/share/bro/site`` and
> +``$prefix/etc`` for ``.example`` files, which indicate the
> +distribution's version of the file differs from the local one, which may
> +include local changes. Review the differences, and make adjustments
> +as necessary (for differences that aren't the result of a local change,
> +use the new version's).
> +
> +Pick a New Install prefix
> +^^^^^^^^^^^^^^^^^^^^^^^^^
> +
> +If you want the install the newer version in a different prefix
> +directory than before, you can just copy local customization and
> +configuration files from ``$prefix/share/bro/site`` and ``$prefix/etc``
> +to the new location (``$prefix`` indicating the root of where Bro was
> +originally installed). Make sure to review the files for difference
> +before copying and make adjustments as necessary (for differences that
> +aren't the result of a local change, use the new version's). Of
> +particular note, the copied version of ``$prefix/etc/broctl.cfg`` is
> +likely to need changes to the ``SpoolDir`` and ``LogDir`` settings.
>
> How can I tune my operating system for best capture performance?
> ----------------------------------------------------------------
>
More information about the bro-dev
mailing list