homeserver/roles/mgrote.zfs_sanoid/templates/sanoid-cron.sh
mg f1fdeea9d3 Bugfix: sanoid: user hatte keine Rechte um Snapshots zu erstellen (#261)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#261
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2021-12-01 08:36:30 +01:00

6 lines
221 B
Bash

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