Backups
Base: /api/backup
The backup section controls the built-in backups of the Hytale server. You list existing backup files, read the backup settings of the server, check the status, start a new backup and delete old files. With it you build, for example, a "Back up now" button for your panel, a warning when the last backup is too old, or a job that backs up before an update. The backup uses the function of the game itself, so chunks are saved before packing.
Endpoints
/api/backup
List backups
Returns backups (filename, size in bytes, created and modified as millisecond timestamps, newest first) as well as backup_dir, configured, total, max_count and archive_max_count. Only files ending in .zip in the backup folder count.
Response Example
{
"backups": [
{
"filename": "backup_2026-01-01_01-00-00.zip",
"size": 10485760,
"created": 1737000000000,
"modified": 1737000000000
}
],
"backup_dir": "/srv/backup",
"configured": true,
"total": 1,
"max_count": 5,
"archive_max_count": 5
}
cURL
curl -X GET 'http://localhost:5550/api/backup' \
-H 'X-Admin-Token: YOUR_TOKEN'
Internal Behavior
/api/backup/config
Backup settings
Returns the backup configuration of the server: enabled, configured, frequency_minutes (interval of the automatic backups in minutes), directory, max_count and archive_max_count.
Response Example
{
"enabled": true,
"configured": true,
"frequency_minutes": 60,
"directory": "/srv/backup",
"max_count": 5,
"archive_max_count": 5
}
cURL
curl -X GET 'http://localhost:5550/api/backup/config' \
-H 'X-Admin-Token: YOUR_TOKEN'
Internal Behavior
/api/backup/status
Backup status
Returns is_backing_up, last_backup_timestamp (milliseconds, 0 if no backup has run yet) and last_backup_error (null if there is no error).
Response Example
{
"is_backing_up": false,
"last_backup_timestamp": 1737000000000,
"last_backup_error": null
}
cURL
curl -X GET 'http://localhost:5550/api/backup/status' \
-H 'X-Admin-Token: YOUR_TOKEN'
Internal Behavior
/api/backup/create
Create backup
Starts a backup of the universe with the own backup function of Hytale and, as soon as it is finished, answers with success: true, filename of the newest ZIP file and timestamp.
Response Example
{
"success": true,
"filename": "backup_2026-01-01_01-00-00.zip",
"timestamp": 1737000000000
}
cURL
curl -X POST 'http://localhost:5550/api/backup/create' \
-H 'X-Admin-Token: YOUR_TOKEN'
Internal Behavior
/api/backup
Delete backup
Deletes a backup file from the backup folder. You send the file name in the JSON body of the DELETE call (filename), not in the address. The response contains success and, on success, deleted.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
filename
|
string | Yes | Zip file name, no path |
Response Example
{
"success": true,
"deleted": "backup_2026-01-01_01-00-00.zip"
}
cURL
curl -X DELETE 'http://localhost:5550/api/backup' \
-H 'X-Admin-Token: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"filename": "2026-10-13_12-00-00.zip"}'