業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

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