Bash / CLI Joomla! 6 Joomla! 5 Joomla! 4 CLI Intermediate

Check Core Updates and Export Safe UTF-8 Backups via CLI

Checks Joomla core update status via core:check-updates, lists installed extensions and produces atomic utf8mb4 backups.

Updated on 24 November 2026 45 copies 148 views
scripts/backup_and_check.sh
# Verifica se há novas versões do Joomla disponíveis
php cli/joomla.php core:check-updates

# Exporta dump SQL consistente em UTF-8 (utf8mb4) fora do public_html
mkdir -p ~/backups
mysqldump --single-transaction --quick --default-character-set=utf8mb4 \
  "$DB_NAME" | gzip > ~/backups/joomla_$(date +%Y%m%d_%H%M).sql.gz
Store database dumps outside public_html so they are never web-accessible.

Technical explanation and best practices

Combining cli/joomla.php core:check-updates with atomic mysqldump --single-transaction provides a fast, zero-downtime pre-upgrade routine.

Direct Engineering

Have a Joomla project or technical challenge in mind?

From architectural diagnosis to production deployment, directly with the engineer.