Restic
<FullImage />
The Restic check:
- Queries a Restic Repository for content
- Checks the integrity and consistency of the repository and data-blobs
- Checks for backup freshness.
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: restic-check
spec:
interval: 30
restic:
- repository: s3:http://minio.minio:9000/restic-canary-checker
name: restic check
password:
valueFrom:
secretKeyRef:
name: restic-credentials
key: PASSWORD
maxAge: 1h
accessKey:
valueFrom:
secretKeyRef:
name: restic-credentials
key: ACCESS_KEY_ID
secretKey:
valueFrom:
secretKeyRef:
name: restic-credentials
key: SECRET_ACCESS_KEY
Field | Description | Scheme | Required |
---|---|---|---|
maxAge | MaxAge for backup freshness | string | Yes |
repository | The restic repository path e.g., rest: https://user:pass@host:8000/ or rest: https://host:8000/ or s3:s3.amazonaws.com/bucket_name | string | Yes |
caCert | CaCert path to the root cert. In case of self-signed certificates | string | |
checkIntegrity | When enabled will check the Integrity and consistency of the restic repository | bool | |
name | Name of the check, must be unique within the canary | string | Yes |
description | Description for the check | string | |
icon | Icon for overwriting default icon on the dashboard | string | |
labels | Labels for check | map[string]string | |
test | Evaluate whether a check is healthy | Expression | |
display | Expression to change the formatting of the display | Expression | |
transform | Transform data from a check into multiple individual checks | Expression | |
metrics | Metrics to export from | []Metrics | |
Encryption Connection | |||
connection | Path of an existing connection to get the encryption key e.g., connection://restic/key Mutually exclusive with password | Connection | |
password | Mutually exclusive with connection | EnvVar | Yes |
AWS Connection | |||
awsConnectionName | Path of an existing connection to connect to S3 e.g., connection://aws/instance Mutually exclusive with accessKey | Connection | |
accessKey | Mutually exclusive with awsConnectionName | EnvVar | Yes |
secretKey | Mutually exclusive with awsConnectionName | EnvVar | Yes |
endpoint | Custom AWS Config endpoint | string | |
region | AWS region | string | |
skipTLSVerify | Skip TLS verify when connecting to AWS | bool |