Appearance
Download backup zip
About 170 wordsLess than 1 minute
apiExtension PluginsBackup
2026-09-01
Downloads a backup package from the server's backup/ folder, for example to keep a copy elsewhere.
| Method and path | GET /plugin/datafor-backup/api/log/download |
| Permission | Administrators |
| Content type | none (query string) |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | query | string | Yes | Backup ID from Query backup logs, for example Backup_2026.10.10-02.00.00.205+0800. |
Example
curl -u admin:password -G \
"http://localhost:28080/datafor/plugin/datafor-backup/api/log/download" \
--data-urlencode "id=Backup_2026.10.10-02.00.00.205+0800" \
-o backup.zipOn success the body is the zip file, named <id>.zip in Content-Disposition.
Errors
Errors are returned with HTTP 200 as a plain-text attachment named info.txt. Check the Content-Disposition header before saving the body.
info.txt content | When |
|---|---|
no permission | The caller is not an administrator. |
<id>.zip not found | No backup has this ID. |
Related: Backup and Restore