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
matrix-backup-borg: add ability to backup to unencrypted repositories #1754
Conversation
This PR could be resolved by #1755 , so I don't know what should be done. |
Yes, you can do that with #1755 with configuration extension |
How common are unencrypted Borg repositories? Perhaps backing up to such repositories is much quicker on low-power hardware, because it skips having to encrypt everything. If it's a common use case, regardless of #1755, we can keep your PR to have a dedicated option for easy usage. Is setting this "ok" flag to You've also named the variable It should be called Another good practice is to use -unknown_unencrypted_repo_access_is_ok: {{ matrix_backup_borg_unknown_unencrypted_access }}
+unknown_unencrypted_repo_access_is_ok: {{ matrix_backup_borg_unknown_unencrypted_repo_access_is_ok|to_json }} |
@spantaleev I am currently backing up to my raspberry pi, and I don't need encryption which is why I disabled it on my repo. I will try to fix those things soon. |
The #1755 has been merged. Could you try to use configuration extension for your use case and post feedback here, please? It works the same as in other roles (eg synapse) |
What I've seen is that it fails because you don't pass a password to I'm not very good with ansible, so any help is appreciated! |
You can see some conditional matrix-docker-ansible-deploy/roles/matrix-client-element/tasks/setup_install.yml Lines 3 to 13 in 5c1ee66
Alternatively, you can use another - name: Fail if encryption enabled and encryption passphrase empty
fail:
msg: >-
You need to define a required configuration setting (`matrix_backup_borg_storage_encryption_passphrase`).
when: "matrix_backup_borg_storage_encryption_passphrase == '' and not matrix_backup_borg_unknown_unencrypted_repo_access_is_ok" |
I suppose you need to update validate_config as well, because it checks for encryption passphrase and some other things. Btw, don't forget to pull new changes first |
…hanged variable name
@spantaleev Seems to me like this is ready to be merged. Let me know if there is anything else I should change! I've tested it on my system and it seems to work, too. |
Thank for contributing this and for the patience! 👍 |
…spantaleev#1754) * matrix-backup-borg: added option for unencrypted repo access * matrix-backup-borg: fixed requiring password for unencrypted repos; changed variable name * matrix-backup-borg: add unknown_unencrypted_repo_access_is_ok to config.yaml.j2 * matrix-backup-borg: cleanup comments * matrix-backup-borg: add documentation regarding unencrypted repos * matrix-backup-borg: add readability and ease of use to code * matrix-backup-borg: fix wording in defaults/main.yml comment * matrix-backup-borg: add quotes to docs * Indicate the variable to use Co-authored-by: Slavi Pantaleev <slavi@devture.com>
Related to: - spantaleev#1727 - spantaleev#1754 - spantaleev#1755 - spantaleev#467
No description provided.