2 ################################################
 
   3 ### Managed by someone's ansible provisioner ###
 
   4 ################################################
 
   5 # Part of: https://git.somenet.org/root/pub/somesible.git
 
   6 # 2017-2025 by someone <someone@somenet.org>
 
  10 Description=Run backup
 
  11 ConditionPathIsDirectory=/bkp/local
 
  12 OnFailure=unit-status-mail@%n.service
 
  18 IOSchedulingClass=best-effort
 
  19 IOSchedulingPriority=6
 
  20 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'
 
  21 WorkingDirectory=/bkp/local