We have postgres DB backup files for the last 5 months and need to retain last 15 days logs only each month. I did try below
find /home/xxx -type f -name “*sql” -mtime +15 -not -name “15.sql”
It doesnt return the correct result. Can anyone help pls
find /home/xxx -type f -name “*sql” -mtime +15 -not -name “15.sql”
New contributor
MPERIYA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.