Maintenance
Backup
A. Backup Chatpion Database
Create a backup of the Chatpion database:
mysqldump -u chatpion -p chatpion > chatpion_backup.sql
B. Backup Chatpion Configuration File
Create a backup of the Chatpion configuration file:
cp config.json config_backup.json
C. Backup Chatpion Attachments
Create a backup of the Chatpion attachments:
cp -r /var/www/html/chatpion/upload /var/www/html/chatpion/attachments_backup
IV. Disaster Recovery
A. Restore Chatpion Database
Stop Chatpion service:
sudo systemctl stop chatpion
Restore the Chatpion database backup:
mysql -u chatpion -p chatpion < chatpion_backup.sql
B. Restore Chatpion Configuration File
Restore the Chatpion configuration file:
cp config_backup.json config.json
C. Restore Chatpion Attachments
Restore the Chatpion attachments:
cp -r /var/www/html/chatpion/attachments_backup /var/www/html/chatpion/uploads