#
################################################
### Managed by someone's ansible provisioner ###
################################################
# Part of: https://git.somenet.org/root/pub/somesible.git
# 2017-2025 by someone <someone@somenet.org>
#

[Unit]
Description=Run backup
ConditionPathIsDirectory=/bkp/local
OnFailure=unit-status-mail@%n.service

[Service]
Type=oneshot
UMask=0077
Nice=5
IOSchedulingClass=best-effort
IOSchedulingPriority=6
ExecStart=/bin/bash -c 'set -o pipefail; /bkp/local/backup.sh 2>&1 | tee /tmp/backup.service.log.all | egrep -v "^[^x] /" | tee /bkp/local/backup.service.log'
WorkingDirectory=/bkp/local