Files
LMS/deploy/systemd/lms-backup.service

16 lines
462 B
Desktop File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Unit]
Description=LMS backup (PostgreSQL + files)
After=docker.service
Requires=docker.service
[Service]
Type=oneshot
WorkingDirectory=/opt/lms
ExecStart=/opt/lms/deploy/backup.sh backup
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=7
# Если сервис запускается не от root, раскомментируйте и укажите пользователя
# с доступом к Docker и каталогу /opt/lms:
# User=lms