log01: compress job: try escaping the %s for cron

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-07-17 16:31:12 -07:00
parent 3c06415a17
commit 4527510448

View file

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