Skip to main content

Restic

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
FieldDescriptionSchemeRequired
maxAgeMaxAge for backup freshnessstringYes
repositoryThe restic repository path eg: rest:https://user:pass@host:8000/ or rest:https://host:8000/ or s3:s3.amazonaws.com/bucket_namestringYes
caCertCaCert path to the root cert. In case of self-signed certificatesstring
checkIntegrityWhen enabled will check the Integrity and consistency of the restic repositorybool
*All other common fieldsCommon
Encryption Connection
connectionPath of existing connection to get encryption key e.g. connection://restic/key/ Mutuall exclusive with passwordConnection
passwordMutually exclusive with connectionEnvVarYes
AWS Connection
awsConnectionNamePath of existing connection to connect to S3 e.g. connection://aws/instance/ Mutuall exclusive with accessKeyConnection
accessKeyMutually exclusive with awsConnectionNameEnvVarYes
secretKeyMutually exclusive with awsConnectionNameEnvVarYes
endpointCustom AWS Config endpointstring
regionAWS regionstring
skipTLSVerifySkip TLS verify when connecting to AWSbool