log01: compress job: try escaping the %s for cron
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
3c06415a17
commit
4527510448
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue