業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

OpenSUSE16.0 : System Backup & Restore

1. Server backup

1.1 Backup of the /srv/www/ directory

①Creating a Backup Script File

Contents of www_backup.sh

➁Create the directory to store

➂Perform a backup

④Add a setting to cron to perform regular backups

1.2.MariaDB Database Backup

①Creating a Backup Script File

Contents of db_my_backup.sh

➁Create the directory to store

③Backup execution

④Set up a cron job to perform regular backups.

2.Data Recovery

2.1 Restoring Backup Files Under www

① Save the backup file used for restoration to the server's "/" (root) directory.

② Extract the file

2.2 Restore MariaDB data

① Save the database backup file to any directory
(in this example, the "/srv/www/backup/db_bak" directory) and extract the data.

② Restore the MariaDB database

Copied title and URL