You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
Podman Quadlet: Restic Server
Overview
Restic REST Server is a backend server for the restic backup tool, started as a Podman Quadlet. It provides a REST API for storing and retrieving backup data.
This cookbook:
- Runs the restic REST server as a rootless container.
- Configures append-only mode for added security (backups can be added but not deleted).
- Enables Prometheus metrics for monitoring.
- Supports private repositories for multi-user setups.
- Stores backup data in
/var/lib/virtiofs/data/restic-server/.
Usage
In a separate terminal, follow the logs.
sudo make tail-logs
Install the Podman Quadlets and start the restic REST server.
sudo make clean install
You should see the restic-server.service starting up.
Verify the server is running:
curl -sSf http://127.0.0.1:8080/
Initialize a new repository (from a restic client):
restic -r rest:http://127.0.0.1:8080/myrepo init
The Prometheus metrics endpoint is available at:
curl http://127.0.0.1:8080/metrics
Finally, remove the quadlets, their configuration and their data.
sudo make uninstall clean
Integration tests
sudo make test