feat: execute backup rotation after backup service execution
This commit is contained in:
@ -7,7 +7,8 @@ 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
|
||||
ExecStartPost=/bin/sh -c 'systemctl start sentry'
|
||||
ExecStopPost=/bin/sh -c 'systemctl start sentry'
|
||||
ExecStopPost=/opt/sentry-util/sentry-util.sh rotate
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user