Database Backups
FeedbackPulse includes a built-in backup system (Admin → 备份) that lets you create, download, and manage database backups directly from the 管理面板.
🔧 工作原理
FeedbackPulse intelligently detects your hosting environment and picks the best backup method:
| Environment | 方法 | Speed |
|---|---|---|
| VPS/Dedicated (exec available) | mysqldump command → gzip | Fast |
| Windows (Laragon/XAMPP) | mysqldump → PHP gzencode | Fast |
| Shared hosting (exec disabled) | Pure PHP/PDO dump → gzencode | Moderate |
The system automatically falls back to the PHP-based method if exec() is disabled or mysqldump is not found. This means backups work on every hosting type, including 共享主机 where shell commands are restricted.
📋 功能
Create a Backup
Click Create Backup to generate a new database dump. The file is saved to storage/app/backups/ with a timestamped filename.
Download a Backup
Click the download icon next to any backup to download the .sql.gz file.
Delete a Backup
Click the delete icon to remove a backup file. This only deletes the backup file — your live database is not affected.
Backup List
Shows all existing backups with:
- Filename
- File size
- Creation date
- Download/Delete actions