# 2-Tier Systems

### (1) - **Taking a System Backup**

1. Login to the AIR Console Web UI using a Global Admin Account.
2. Navigate to the Backup Management section by selecting the **Gear Button** and then "**Backup History**" from the drop-down list.
3. Make a backup of the system by clicking the "**Backup Now**" button on the top right corner.
4. Download the backup file by clicking the **Vertical Ellipsis** **Button** under the "**Actions**" column and clicking **Download** from the drop-down list.
   * This will download a zip file with the ABF extension (AIR Backup File).

### **(2) - Stop AIR Systems**

<mark style="color:red;">**NOTE: You must stop AIR System first.**</mark>

1. Use a terminal emulator, such as PuTTY to connect to the CLI of the AIR Server via SSH.
2. Navigate to the AIR folder (/opt/binalyze-air by default) by executing the following command:
   * `cd /opt/binalyze-air`
3. Stop containers by executing the following command:
   * `docker compose down -v`

### **(3) - Stop DB System**

1. Navigate to the AIR DB folder (/opt/binalyze-air-db by default) by executing the following command:
   * `cd /opt/binalyze-air-db`
2. Stop containers by executing the following command:
   * `docker compose down -v`

### **(4) - Updating the DB System**

<mark style="color:red;">**NOTE: You must upgrade DB first.**</mark>

1. Use a terminal emulator, such as PuTTY to connect to the CLI of the DB Server via SSH.
2. Navigate to the AIR DB folder (/opt/binalyze-air-db by default) by executing the following command:
   * `cd /opt/binalyze-air-db`
3. Pull the latest images by executing the following command:
   * `docker compose pull`
4. Start containers by executing the following command:
   * `docker compose up -d`

### **(5) - Updating the AIR System**

1. Use a terminal emulator, such as PuTTY to connect to the CLI of the AIR Server via SSH.
2. Navigate to the AIR folder (/opt/binalyze-air by default) by executing the following command:
   * `cd /opt/binalyze-air`
3. Pull the latest images by executing the following command:
   * `docker compose pull`
4. Start containers by executing the following command:
   * `docker compose up -d`
