You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
638 B
18 lines
638 B
{% for share in nas_shares %}
|
|
{% if share.protocols.rsync.enabled %}
|
|
[{{ share.name }}]
|
|
path = {{ share.path | default(nas_root_dir + '/data/' + share.name) }}
|
|
comment = {{ share.description }}
|
|
uid = rsync
|
|
gid = rsync
|
|
read only = {{ share.protocols.rsync.read_only | ternary('yes','no') }}
|
|
{% if share.protocols.rsync.users is defined and share.protocols.rsync.users.keys() | list | length > 0 %}
|
|
auth users = {{ share.protocols.rsync.users.keys() | list | join(' ') }}
|
|
secrets file = {{ nas_root_dir }}/meta/{{ share.name }}/rsync.secrets
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
# Rsync access is disabled for {{ share.name }}
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|