Zip & Remove Files based on time - LINUX
#!/bin/bash
#Author: sibzz
gzip {your directory}/log/server.log.*
find {your directory}/log/ -mtime +30 -exec rm {} \;
#Author: sibzz
gzip {your directory}/log/server.log.*
find {your directory}/log/ -mtime +30 -exec rm {} \;
Comments
Post a Comment