
AlmaLinux 8.6 : System Backup and Restore
1. Website data backup1-1. Backup under /var/www/html①Create backup script file# cd /var/www/system# vi backup_html.sh2. MySQL database backup①Creating backup script files# cd /var/www/system3.Restore backup files under html① Store HTML backup files in "/" (root) directory# cd /var/www/backup/html_bak4. 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