OpenSUSE15.6 ; Server backup and restore

1. Server Backup

1.1 Backup under /srv/www/

Create backup script file

Contents of www_backup.sh

➁Create directory to store

➂Perform backup

Add settings to cron for periodic backups

1.2. MariaDB Database Backup

Create backup script file

Contents of db_my_backup.sh

Create directory to store

Backup Execution

Add settings to cron for periodic backups

2.Data Restore

2.1 Restore backup files under www

Save backup files used for restore to the "/ (root)" directory of the server

Extract the file

2.2 Restore MariaDB data

Save the database backup file to any directory
Extract data

Restore MariaDB database

Copied title and URL