Rocky Linux8.6_en Rocky Linux8.6 : System Backup and Restore
1.Website data backup1-1. Backup under /var/www/html①Creating backup script files# cd /var/www/system# vi backup_html.sh2. MySQL database backup①Creating backup script files# cd /var/www/system3. Restore backup files under html① Store HTML backup files in "/ (root)" directory# cd /var/www/backup/html_bak# cp html_back_20220610.tar.gz / ←Specify the backup file with the latest date4. Restore Mysql Backup Files①Save DB backup file to any directory(In the example, the directory is "/var/www/backup/db_bak") Extract data
