ansible/roles/base/files/compress-log.cron
Kevin Fenzi 4527510448 log01: compress job: try escaping the %s for cron
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-17 16:31:12 -07:00

1 line
145 B
Text

0 06 * * * root /usr/bin/find /var/log/hosts -type f -name "*.log" -print | grep -v "$(date +'/\%Y/\%m/\%d/')" | xargs -r -n1 xz -1 > /dev/null