salt-states/containers/files/mysql-dump.service.jinja
2023-06-27 09:16:37 +02:00

13 lines
267 B
Django/Jinja

{%- set user = salt['pillar.get']('podman:user', 'root') %}
{%- set home = salt['user.info'](user).home %}
[Unit]
Description=Dump all mariadb databases
[Service]
Type=oneshot
User={{ user }}
ExecStart={{ home }}/bin/mysql-dump.sh
[Install]
WantedBy=default.target