Click here for "Error Codes for Commercial Air Conditioners".(Japanese Version)

Debian11.3 : System Backup and Restore

1. System Backup

1.1 Backup under /var/www/html

① Create backup_all.sh script under /opt

backup_all.sh script contents
10-day data storage

②Create a directory to store backup files

③Add settings to cron for periodic backups

1.2 Mysql database backup

①Create db_backup.sh script under /opt

db_backup.sh script contents
Data storage for 10 days

②Create a directory to store backup files

③Add settings to cron for periodic backups

2. System Restore

2.1 Restore backup files under HTML

① Store HTML backup files used for backup in the "/ (root)" directory
Select the backup file with the latest timestamp (e.g. www_back_20220501.tar.gz)

2.2 Restore MySQL database

①Save DB backup file to any directory and extract data

②Restore MySQL

 

Copied title and URL