📌 Replace the highlighted information with your own
mkdir -p ~/zabbix-backup/{db,etc/apache2,etc/mysql,usr-share,zabbix}
# Backup Zabbix main configuration
sudo cp -r /etc/zabbix ~/zabbix-backup/etc/
# Backup Zabbix frontend (in case of customizations: logo, themes, etc.)
sudo cp -r /usr/share/zabbix ~/zabbix-backup/usr-share/
# Backup PHP configuration (php.ini, pool.d, etc.)
sudo cp -r /etc/php ~/zabbix-backup/etc/
# Backup Apache config for Zabbix (if exists)
[ -f /etc/apache2/sites-available/zabbix.conf ] && sudo cp /etc/apache2/sites-available/zabbix.conf ~/zabbix-backup/etc/apache2/
# Backup MySQL main config (if exists)
[ -f /etc/mysql/my.cnf ] && sudo cp /etc/mysql/my.cnf ~/zabbix-backup/etc/mysql/
# Backup Zabbix database (MySQL/MariaDB)
sudo mysqldump -u root -p zabbix_db > ~/zabbix-backup/db/zabbix_db_backup.sql
📌 For Ubuntu 20.04
wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu20.04_all.deb
📌 For Ubuntu 22.04
wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu22.04_all.deb
📌 For Ubuntu 24.04
wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb
sudo apt install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent