PyRestServer Documentation

PyRestServer is a REST API server for restic backup software with pluggable storage backends.

This package provides a Python implementation of the restic REST API with support for multiple storage backends, including local filesystem and Drime Cloud storage.

PyPI version Python versions

Features

  • REST API compatible with restic - Drop-in replacement for rest-server

  • Upload verification - SHA-256 hash verification for data integrity

  • Pluggable storage backends - Local filesystem and cloud storage (Drime)

  • Authentication - htpasswd-based authentication support

  • Append-only mode - Prevent deletion of existing backups

  • TLS support - Secure communication with TLS/SSL

  • Prometheus metrics - Built-in metrics endpoint

  • Secure configuration - Custom cipher keys for password obscuring

Quick Start

Install pyrestserver:

pip install pyrestserver

Start a server with local storage:

pyrestserver serve --path /tmp/restic --no-auth

Use with restic:

restic -r rest:http://localhost:8000/myrepo init
restic -r rest:http://localhost:8000/myrepo backup /path/to/data

Contents

Indices and tables