Manual backup endpoints are available since v1.4.0. Scheduled backup endpoints (
/backup/schedule) are available since v1.8.0.GET /backup
Returns a list of all backup files stored inwp-content/wmp-backups/, sorted newest first.
Response
POST /backup/create
Creates a new SQL database backup and saves it towp-content/wmp-backups/. All tables are included by default.
The backup directory is protected from direct web access via a
.htaccess deny rule and an index.php silence file that are written automatically when the directory is created.Parameters
Specific table names to include in the backup. Defaults to all tables in the database.
Response
Always
true.Filename of the created backup.
File size in bytes.
Human-readable file size.
Creation timestamp.
POST /backup/download
Prepares a backup file for download by generating a one-time signed download URL valid for 120 seconds.Parameters
The exact filename of the backup to prepare. Must match the pattern
backup-YYYY-MM-DD-HHmmss.sql.Response
Always
true.Signed URL to stream the backup file. Expires after 120 seconds.
GET /backup/serve
Streams a backup file as a download. Use the URL returned byPOST /backup/download — it includes the required key parameter.
The response is an SQL file download (
Content-Type: application/sql), not JSON. Use the download_url from POST /backup/download directly.Parameters
The one-time download key returned by
POST /backup/download.DELETE /backup/delete
Permanently deletes a backup file from disk.Parameters
The exact filename of the backup to delete. Must match the pattern
backup-YYYY-MM-DD-HHmmss.sql.Response
Always
true on success.GET /backup/schedule
Available since v1.8.0
Response
Whether automatic scheduled backups are active.
Schedule frequency:
daily, weekly, or monthly.Number of backup files to keep. Older files are pruned automatically.
Timestamp of the next scheduled run in
Y-m-d H:i:s format, or null if scheduling is disabled.POST /backup/schedule
Available since v1.8.0
Parameters
Enable or disable scheduled backups.
How often to run backups:
daily, weekly, or monthly. Defaults to daily.Number of backup files to keep. Older files beyond this limit are deleted after each backup run. Defaults to
5.Response
Always
true.The new enabled state.
The saved frequency.
The saved retain count.
Timestamp of the next scheduled run, or
null if disabled.