2020-10-22 09:59:02 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Sentry backup
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
WorkingDirectory=/mnt/data/backup
|
|
|
|
ExecStartPre=/bin/sh -c 'systemctl -q is-active sentry.service && systemctl stop sentry'
|
|
|
|
ExecStart=/opt/sentry-util/sentry-util.sh backup
|
2020-10-22 10:51:08 +02:00
|
|
|
ExecStopPost=/bin/sh -c 'systemctl start sentry'
|
|
|
|
ExecStopPost=/opt/sentry-util/sentry-util.sh rotate
|
2020-10-22 09:59:02 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|