Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

Ubuntu22.04 Server : Backup and Restore

1. System Backup

1.1 Backup under /var/www/html

①Create /var/www/system directory

②/Create backup_all.sh script under var/www/system

backup_all.sh script contents
10-day data storage

③Create a directory to store backup files

④Add settings to cron for periodic backups

1.2Mysql database backup

①Create db_backup.sh script under /var/www/system

db_backup.sh script contents
10-day storage

②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 the HTML backup file to be used for backup in the "/ (root)" directory
Select the backup file with the latest timestamp (e.g. www_back_20220501.tar.gz)

2.2Restore MySQL database

①Save DB backup file to any directory and decompress data

②Restore MySQL
Copied title and URL