Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

CentOS7.9 ; System Backup and Restore

1.Website data backup

1.1 Backup under /var/www/html

①Creating backup script file

Contents of backup_html.sh

➁authorization

➂Create save directory

④scheduled execution
Add settings to cron for periodic backups

1.2 MySQL database backup

①Creating backup script file

➁authorization

➂Create save directory

④scheduled execution
Add settings to cron for periodic backups

2.Website Data Recovery

2.1 Restore backup files under html

① Store HTML backup files in "/ (root)" directory

➁Expand file

2.2 Restoring Mysql Backup Files

①Save the DB backup file to an arbitrary directory, and then
Extracting data

➁Restore MySQL

Copied title and URL