Compare commits

...

1 Commits

Author SHA1 Message Date
wpetit f587ea19f4 feat: add systemd unit/timer files 2020-10-22 10:04:36 +02:00
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=Sentry backup
After=docker.service
[Service]
Type=oneshot
WorkingDirectory=/opt/sentry-backup
ExecStartPre=/bin/sh -c 'systemctl -q is-active sentry.service && systemctl stop sentry'
ExecStart=/opt/sentry-util/sentry-util.sh backup
ExecStartPost=/bin/sh -c 'systemctl start sentry'
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,8 @@
[Unit]
Description=Timer for Sentry backup
[Timer]
OnCalendar=Mon 6:00:00
[Install]
WantedBy=multi-user.target