Tag Info

New answers tagged

0

I use find and crontab to accomplish this # crontab -e 5 0 * * * /bin/find /path/to/logs/* -type f \( -mtime 1 ! -name "." ! -name ".gz" \) -print0 | xargs -0 gzip >/dev/null 2>&1; -mtime n File’s data was last modified n*24 hours ago. ! -name "not ".*" hidden files ! -name "not ".gz" files which should already be compressed -print0 & -0 to ...



Top 50 recent answers are included