AlmaLinux 8.6 : System Backup and Restore
1. Website data backup
1-1. Backup under /var/www/html
①Create backup script file
# cd /var/www/system
# vi backup_html.sh
2. MySQL database backup
①Creating backup script files
# cd /var/www/system
3.Restore backup files under html
① Store HTML backup files in "/" (root) directory
# cd /var/www/backup/html_bak
4. Restore Mysql Backup Files
①Save the database backup file to any directory
(In the example, the directory is "/var/www/backup/db_bak".)
Unzip data