Skip to content
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

Make gpg_key completely optional #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ None
* `duply_backup_profiles`: [default: `{}`]: Duply backup profiles
* `duply_backup_profiles.key`: The name of the profile (e.g. `etc`)
* `duply_backup_profiles.key.conf`: Conf declarations
* `duply_backup_profiles.key.conf.gpg_key`: Encrypt with key (**optional**, omitting will disable encryption)
* `duply_backup_profiles.key.conf.gpg_key`: Encrypt with key (**optional**, omitting `gpg_key` but including `gpg_keys_enc` and `gpg_key_sign` will enable separate signing and encrypting keys. Omitting two or more options will disable encryption)
* `duply_backup_profiles.key.conf.gpg_pw`: Symmetric encryption using passphrase only (**optional**)
* `duply_backup_profiles.key.conf.gpg_keys_enc`: Public key to encrypt to (**optional**)
* `duply_backup_profiles.key.conf.gpg_key_sign`: A secret key for signing (**optional**)
Expand Down
2 changes: 2 additions & 0 deletions templates/etc/duply/conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# GPG_PW='passphrase' - symmetric encryption using passphrase only
{% if item.value.conf.gpg_key is defined %}
GPG_KEY='{{ item.value.conf.gpg_key }}'
{% elif (item.value.conf.gpg_keys_enc is defined) and (item.value.conf.gpg_key_sign is defined) %}
# GPG_KEY= not in use; see GPG_KEYS_ENC and GPG_KEY_SIGN below
{% else %}
GPG_KEY='disabled'
{% endif %}
Expand Down