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

CentOS Stream9 ; System Backup and Restore

1.Website data backup

Backup under /var/www/html

①Create backup script file

Contents of backup_html.sh

Set permissions

Create save directory and Set permissions

scheduled execution
Add settings to cron for periodic backups

2.MySQL database backup

Create backup script file

Contents of db_my_backup.sh

Set permissions

Create save directory and Set permissions

scheduled execution
Add settings to cron for periodic backups

3.Restore backup files under html

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

Expand file

4.Restore Mysql backup file

Save the database backup file to any directory and Extracting data

Restore MySQL database

Copied title and URL