Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Rocky Linux 8.4 ; Data Backup and Restore

1.Web site data backup

1-1.Backup under /var/www/html

①Create a backup script file

➁authorized permission
➂Create storage directory
④periodic execution
Add configuration to cron and backup periodically

2.MySQL database backup

①Create a backup script file

➁authorized permission
➂Create storage directory
④periodic execution
Add configuration to cron and backup periodically

3.Restore backup files under html

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

➁Extract the file

4.Restore Mysql backup file

①Save the DB backup file in a directory of your choice and extract the data.
(In the example, the directory is "/var/www/backup/db_bak".) Unzip the data.

➁Restore MySQL
タイトルとURLをコピーしました