homeserver/roles/_mgrote.musterrolle_systemd/templates/rclone.service.j2
mg f823248d18 Doku: Musterrolle "systemd" erstellt (#356)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#356
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-04-22 18:14:11 +02:00

10 lines
559 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Sync data with rclone.
OnFailure=rclone_mail@{{ item.name }}.service
[Service]
Type=simple
ExecStart=/usr/bin/rclone --config "/etc/rclone/rclone.conf" sync --log-level {{ item.loglevel | default ("INFO") }} --transfers {{ item.transfers | default ("8") }} --checkers {{ item.checkers | default ("8") }} --retries {{ item.retries | default ("5") }} --bwlimit {{ item.bwlimit | default ("0") }} {% if item.mode is defined %}{{ item.mode }}{% endif %} --delete-after "{{ item.quelle }}" "{{item.ziel }}"