How to backup Feng Office
This page is about how to backup your Feng Office installation manually. If you want to learn about the backup plugin that allows you to create backups from the administration panel, please see the page Backup (Plugin).
What needs to be backed up?
How to back up Feng Office
mkdir /path/to/backup
cp -R /var/www/feng /path/to/backup
Create a dump of Feng Office's database. MySQL includes a command called mysqldump. You can use that command or some other tool like phpMyAdmin or MySQL
GUI Tools. Here we will see the first two:
A) mysqldump (replace words between brackets for the correct values)
mysqldump -h [host] -u [username] -p [database] > /path/to/backup/db.sql
B) phpMyAdmin
Select Feng Office's database
Click „Export”
Select to export to „SQL”
Select to export the „Structure” as well as the „Data”
Select to „Save as file”
Click on „Go” and save the generated file to /path/to/backup/db.sql
How to restore a backup
cp -R /path/to/backup/feng /var/www
Execute the backup database script (db.sql). You can do this with the mysql command, in phpMyAdmin or MySQL
GUI Tools.
A) mysql command
mysql -h [host] -u [user] -p [database] < /path/to/backup/db.sql
B) phpMyAdmin
Select Feng Office's database
Click „Import”
Choose the database script created on backup (/path/to/backup/db.sql)
Click „Go”