Overview
Backup endpoints allow you to start manual backups, monitor progress, view job history, and cancel running operations.Start Backup
Start a manual backup operation. Endpoint:POST /api/backup/start
Repository path to back up
ID of the created backup job
Initial job status:
pendingHuman-readable message
Get All Backup Jobs
Retrieve backup job history with progress details. Endpoint:GET /api/backup/jobs
Maximum number of jobs to return
Only return jobs triggered by scheduled tasks
Only return manual backup jobs
Array of backup job objects
Job status:
pending, running, completed, completed_with_warnings, failed, or cancelledOriginal size in bytes before compression
Compressed size in bytes
Deduplicated size in bytes (actual storage used)
Number of files processed
Backup speed in MB/s
Get Backup Status
Get detailed status for a specific backup job. Endpoint:GET /api/backup/status/{job_id}
Example Request:
Cancel Backup
Cancel a running backup job. Endpoint:POST /api/backup/cancel/{job_id}
Example Request:
Whether the backup process was successfully terminated
Stream Backup Logs
Get incremental logs for real-time streaming (for failed/cancelled backups only). Endpoint:GET /api/backup/logs/{job_id}/stream
Line number to start from for incremental updates
Download Backup Logs
Download complete logs as a text file (for failed/cancelled backups only). Endpoint:GET /api/backup/logs/{job_id}/download
Access token (passed as query parameter for download links)
Progress Tracking
Backup progress is tracked in real-time with the following metrics:- Progress Percent: Overall completion percentage (0-100)
- Original Size: Total size of data being backed up
- Compressed Size: Size after compression
- Deduplicated Size: Actual storage used after deduplication
- Files Processed: Number of files backed up
- Current File: File currently being processed
- Backup Speed: Current throughput in MB/s
- Estimated Time Remaining: Seconds until completion
Status Values
Backup jobs can have the following statuses:pending- Job created, waiting to startrunning- Backup in progresscompleted- Backup completed successfullycompleted_with_warnings- Backup completed but with warningsfailed- Backup failed with errorscancelled- Backup was cancelled by user
Maintenance Operations
Backups can include automatic maintenance:- Prune: Remove old archives based on retention policy
- Compact: Free up space by compacting repository segments
maintenance_status field.