Code in this video_Upgrade Zabbix Server 6 to 7 on Ubuntu/Debian

📌 Note the highlighted information

mkdir -p /backup-zabbix-server-6/{conf-files,bin-files,doc-files,web-files,database-files}

cp -rp /etc/zabbix/zabbix_server.conf /backup-zabbix-server-6/conf-files && \
cp -rp /etc/httpd/conf.d/zabbix.conf /backup-zabbix-server-6/conf-files 2>/dev/null && \
cp -rp /etc/apache2/conf-enabled/zabbix.conf /backup-zabbix-server-6/conf-files 2>/dev/null && \
cp -rp /etc/zabbix/php-fpm.conf /backup-zabbix-server-6/conf-files 2>/dev/null && \
cp -rp /usr/sbin/zabbix_server /backup-zabbix-server-6/bin-files && \
cp -rp /usr/share/doc/zabbix-* /backup-zabbix-server-6/doc-files && \
cp -rp /usr/share/zabbix/ /backup-zabbix-server-6/web-files

mysqldump -uroot -p --single-transaction 'Your-Database-Name' > /backup-zabbix-server-6/database-files/zabbix-backup.sql

🔸 for Ubuntu 22.04 LTS

wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu22.04_all.deb

🔸 for Ubuntu 24.04 LTS

wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu24.04_all.deb

🔸 for Debian 12

wget https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-2+debian12_all.deb

apt install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent zabbix-apache-conf -y

Leave a Reply

Your email address will not be published. Required fields are marked *