Fedora39 ; 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