-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Passing Additional Flags to Restic #792
Comments
Hi @sebt3 As of now, there's no possibility to backup to a Restic repository with a self-signed certificate. You might be able to backup using an alternative backend, e.g. non-TLS S3 backend ( |
Just extending up this. I'm not sure what exactly you mean with "minio compatibility mode". |
I went that road : installed minio on my NAS using the qpkg alternative store, and got backup working even before oping this issue ;)
I was more speculating than anything but since QuOjbects is close source, i'll side with your guess. Still, being able to propagate restic specific arguments (including |
I'm chaning the issue a bit so that it's about a more generic "Allow Passing Additional Flags to Restic" use-case. |
How about using a similar environment variable as $BACKUP_RESTIC_OPTIONS, let's say $BACKUP_RESTIC_FLAGS and adding those flags to the restic command? |
This would totally solve my problem, and could be a answer to this one : #317 I need to exclude the "lost+found" folder from the backup because i use longhorn volume. i would like the pass the "--exclude /**/lost+found" flag... EDIT : I managed to use the BACKUP_COMMAND_RESTIC env var to pass the flag but the actual k8up binary seems to not support it yet. |
@hugosxm how did you manage to use |
Description
QNAP QuObjects is an "s3 compliant" service on QNAP nas machine.
It can be configured as using tls, but it use a self-signed certificate. Restic can use it but requires "--insecure-tls" argument to use it. Yet k8up doesn't allow to pass that argument to restic.
It can also but used as http, but then restic use a minio compatibility mode which doesnt suit QuObjects and restic fail with "The Content-MD5 you specified was invalid".
Additional Context
No response
Logs
Expected Behavior
Using restic command-line it works :
export RESTIC_REPOSITORY="s3:https://s3.rennes.home:8443/solidite"
restic init --insecure-tls
created restic repository 493e88aa9c at s3:https://s3.rennes.home:8443/solidite
....
Please provide a way to propagate that --insecure-tls to restic
Acceptance Criteria
** These flags will be passed to all restic calls within K8up ad verbatim
** It should be clearly marked as an advanced configuration as we can't guarantee the correctness of all passed restic flags
Steps To Reproduce
No response
Version of K8up
v2.5.2
Version of Kubernetes
v1.25.3+k3s1
Distribution of Kubernetes
k3s
The text was updated successfully, but these errors were encountered: