homeserver/roles/mgrote.zfs_sanoid/templates/sanoid-cron.sh
mg 00aad73ff5 chnage to script user: sanoid (#250)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#250
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2021-11-23 21:04:03 +01:00

5 lines
216 B
Bash

#!/bin/bash
{{ file_header | default () }}
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/usr/local/bin/sanoid --cron --verbose | ts '%Y-%m-%d - %H-%M-%S' >> {{ sanoid_log_file }} 2>&1 &