salt-states/containers/files/mysql-dump.service.jinja

13 lines
267 B
Plaintext
Raw Normal View History

2023-06-27 07:16:37 +00:00
{%- 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