Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix:playground
nginx-time-based-logfiles-helpers
nginx-compress-logs
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx-compress-logs of Package nginx-time-based-logfiles-helpers
#!/bin/bash BASEDIR="/var/log/nginx" find ${BASEDIR} -type f -name \*.log -a -not -name $(date +'%F')-access.log -a -not -name error.log -a -not -path "${BASEDIR}/access.log" -print0 | xargs -r0 xz for i in ${BASEDIR}/*/ ; do j="${i}$(date +'%Y/%m/%F')-access.log" ln -s -f $j ${i}access.log done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor