Skip to main content

Overview

Archive endpoints allow you to list archives in a repository, view detailed information, browse contents, delete archives, and extract files.

List Archives

List all archives in a repository. Endpoint: GET /api/archives/list
string
required
Repository path
Example Request:
Response:

Get Archive Info

Get detailed information about a specific archive. Endpoint: GET /api/archives/{archive_id}/info
string
required
Repository path
boolean
default:false
Include file listing in response
integer
default:1000
Maximum number of files to return if include_files is true
Example Request:
Response:
integer
Original size in bytes before compression
integer
Size after compression in bytes
integer
Actual storage used after deduplication in bytes
integer
Number of files in the archive
array
Command used to create the archive
string
Hostname where backup was created
array
Array of file objects (only if include_files=true)

Get Archive Contents

List files and directories in an archive. Endpoint: GET /api/archives/{archive_id}/contents
string
required
Repository path
string
default:""
Subdirectory path to list (empty for root)
Example Request:
Response:

Delete Archive

Delete an archive from the repository (runs in background). Endpoint: DELETE /api/archives/{archive_id} Admin Only: Yes
string
required
Repository path
Example Request:
Response:
integer
ID of the delete job for status monitoring

Get Delete Job Status

Monitor the status of an archive deletion. Endpoint: GET /api/archives/delete-jobs/{job_id} Example Request:
Response:

Cancel Delete Job

Cancel a running archive deletion. Endpoint: POST /api/archives/delete-jobs/{job_id}/cancel Admin Only: Yes Example Request:
Response:

Download File from Archive

Extract and download a specific file from an archive. Endpoint: GET /api/archives/download
string
required
Repository path
string
required
Archive name
string
required
Path to file within archive
string
required
Access token (passed as query parameter for download links)
Example Request:
Response: Binary file content with appropriate Content-Type header

Archive Status Values

Delete jobs can have the following statuses:
  • pending - Job created, waiting to start
  • running - Deletion in progress
  • completed - Deletion completed successfully
  • failed - Deletion failed with errors
  • cancelled - Deletion was cancelled