House keeping server logs older than 30 days "URGENT"
by veeragovindu from LinuxQuestions.org on (#51CM6)
HI All,
1) In linux server daily logs moving to another path older than last month.
2) tar those files last month date format (previous files also in tar files)
3)then remove files except dateformat tars
ex:
abc.log_12-03-2019.gz
def.log_14-02-2019.gz
these files move to other location with that date means current date is march but we need to move file on last month file.
then tar old month date and remove move log files on that day
thanks,
veera


1) In linux server daily logs moving to another path older than last month.
2) tar those files last month date format (previous files also in tar files)
3)then remove files except dateformat tars
ex:
abc.log_12-03-2019.gz
def.log_14-02-2019.gz
these files move to other location with that date means current date is march but we need to move file on last month file.
then tar old month date and remove move log files on that day
thanks,
veera