MiracleLinux8.8 ; 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
①Create backup script file
# cd /var/www/system
# vi db_my_backup.sh
3.Restore backup files under html
①Store HTML backup files in "/ (root)" directory
4.Restore Mysql backup file
①Save the database backup file to any directory and
(In the example, the directory is "/var/www/backup/db_bak".)Extracting data