|
| 1 | +--- |
| 2 | +title: "Upgrading BART" |
| 3 | + |
| 4 | +legacyRedirectsGenerated: |
| 5 | + # This list is generated by a script. If you need add entries, use the `legacyRedirects` key. |
| 6 | + - "/edb-docs/d/edb-backup-and-recovery-tool/installation-getting-started/installation-upgrade-guide/2.6.1/upgrading_bart.html" |
| 7 | +--- |
| 8 | + |
| 9 | +<div id="upgrade" class="registered_link"></div> |
| 10 | + |
| 11 | +This section outlines the process of upgrading BART from an existing version to the latest version. |
| 12 | + |
| 13 | +- [Upgrading from BART 2.0](#upgrading-from-bart-20) describes the upgrade process from BART 2.0 to the latest version. |
| 14 | +- [Upgrading from Older Versions of BART (except 2.0)](#upgrading_from_older_versions_except_2_0_to_latest_versions_of_bart) describes the upgrade process from previous BART versions (except 2.0) to the latest version. |
| 15 | + |
| 16 | +**Upgrade Restrictions** |
| 17 | + |
| 18 | +The following restrictions apply with regard to previous BART versions. |
| 19 | + |
| 20 | +- You can take incremental backups using the latest version only when the parent backup (full or incremental backup) has also been taken with the latest version. |
| 21 | +- Using the latest version, you can restore incremental backups that are taken only with the latest version of BART. However, using the latest version you can restore full backups that were taken with older versions. |
| 22 | + |
| 23 | +<div id="upgrading_from_older_versions_except_2_0_to_latest_versions_of_bart" class="registered_link"></div> |
| 24 | + |
| 25 | +## Upgrading from Older Versions of BART (except 2.0) |
| 26 | + |
| 27 | +Perform the following steps to upgrade from older versions of BART (except 2.0) to the latest version: |
| 28 | + |
| 29 | +**Step 1:** Assume the identity of the BART user account and invoke the following command to stop the BART WAL scanner program (`bart-scanner`): |
| 30 | + |
| 31 | +```text |
| 32 | +bart-scanner STOP |
| 33 | +``` |
| 34 | + |
| 35 | +**Step 2:** As the `root` user, upgrade to the latest BART version with the `yum upgrade` command. |
| 36 | + |
| 37 | +- To upgrade the BART RPM package directly from the *EDB Yum Repository* website, specify only the package name: |
| 38 | + |
| 39 | + On CentOS 7: |
| 40 | + |
| 41 | + ```text |
| 42 | + yum upgrade edb-bart |
| 43 | + ``` |
| 44 | + |
| 45 | + You can also use a downloaded RPM package file to upgrade. To use a downloaded BART RPM package file to upgrade, use the `yum` command, specifying the complete RPM package file name: |
| 46 | + |
| 47 | + ```text |
| 48 | + yum upgrade edb-bart-2.6.2 rhel7.x86_64.rpm |
| 49 | + ``` |
| 50 | + |
| 51 | +**Step 3:** Repeat the process described in this section to upgrade to the latest BART version on each remote hosts where an incremental backup will be restored. |
| 52 | + |
| 53 | +For additional information about restoration of incremental backups on remote hosts, see the EDB Backup and Recovery User Guide available at the [EDB website](/bart/latest/bart_user/). |
| 54 | + |
| 55 | +**Step 4:** If the `bart --version` command returns an error stating the `PATH` is not available after switching from `root` user to another BART user account, adjust the setting of the `PATH` environment variable to include the location of the BART 2.6.2 executable (the `bin` subdirectory) in the `~/.bashrc` or `~/.bash_profile` files of the following user accounts: |
| 56 | + |
| 57 | +- The BART user account on the BART host. |
| 58 | +- The remote user account on the remote host to which incremental backups are to be restored. For details, see the EDB Backup and Recovery User Guide available at the [EDB website](/bart/latest/bart_user/). |
| 59 | + |
| 60 | +The `PATH` setting should be the same as set for BART 2.6.2 since all versions use `/usr/edb/bart/bin`. |
| 61 | + |
| 62 | +!!! Note |
| 63 | + After upgrading to the latest BART version, you must take a new full backup of your system before performing an incremental backup. |
| 64 | + |
| 65 | +<div id="upgrading_from_bart_2_0" class="registered_link"></div> |
| 66 | + |
| 67 | +## Upgrading from BART 2.0 |
| 68 | + |
| 69 | +Perform the following steps to upgrade BART 2.0 to the latest version of BART: |
| 70 | + |
| 71 | +**Step 1:** Install the latest version of BART. For information about how to install, see [installing BART](02_installing_bart/#installing-bart). |
| 72 | + |
| 73 | +**Step 2:** Save a copy of your BART 2.0 configuration file. The default location of the BART 2.0 configuration file is `/usr/edb/bart2.0/etc/bart.cfg`. |
| 74 | + |
| 75 | +**Step 3:** Invoke the following command to remove BART 2.0: |
| 76 | + |
| 77 | + On CentOS 7: |
| 78 | + |
| 79 | +```text |
| 80 | +yum remove edb-bart20 |
| 81 | +``` |
| 82 | + |
| 83 | +**Step 4:** Place the BART 2.0 configuration file (`bart.cfg`) that you saved in Step 2 in the newly created `/usr/edb/bart/etc` directory. You can use many of the same configuration parameters for BART 2.6.2, but note that you must use a new directory for the BART backup catalog. A new set of full backups and incremental backups taken using BART 2.6.2 must be stored in a new BART backup catalog. |
| 84 | + |
| 85 | +To specify an alternative configuration file name or location, use the `-c` option with BART subcommands. For more information about the `-c` option, see the EDB Backup and Recovery Us available at the [EDB website](/bart/latest/bart_user/). |
| 86 | + |
| 87 | +!!! Note |
| 88 | + The `bart.cfg` configuration file is only required on the BART 2.6.2 host from which you will invoke BART subcommands. BART does not require the `bart.cfg` file on hosts on which an incremental backup will be restored. |
| 89 | + |
| 90 | +**Step 5:** Adjust the setting of the `PATH` environment variable to include the location of the BART 2.6.2 executable (the `bin` subdirectory) in the `~/.bashrc` or `~/.bash_profile` files for the following user accounts: |
| 91 | + |
| 92 | +- The BART user account on the BART host. |
| 93 | +- The user account on the remote host to which incremental backups will be restored. For details, see the EDB Backup and Recovery User Guide available at the [EDB website](/bart/latest/bart_user/). |
| 94 | + |
| 95 | +**Step 6:** Perform the BART 2.6.2 installation and BART 2.0 removal process on each remote host on which an incremental backup was restored using BART 2.0. |
| 96 | + |
| 97 | +!!! Note |
| 98 | + After upgrading to the latest BART version, you must take a new full backup of your system before performing an incremental backup. |
0 commit comments