Fedora41 ; System Backup and Restore

1. Website data backup

Backup under /var/www/html

Create backup script file

Contents of html_backup.sh

authorization

Create save directory

Add settings to cron for periodic backups

2. MySQL database backup

Create backup script file

Contents of db_my_backup.sh

authorization

Creation backup storage directory

Add settings to cron for periodic backups

3. Web configuration file (under html) restored

Copy the HTML backup file to the "/ (root)" directory of the server to be used for restoration

Extract the file

4. Restore MySQL data

Save database backup file to any directory

Restore MySQL

Copied title and URL