Excluir arquivos antigos Linux
find /opt/backup -type f -mtime +30 -exec rm -f {} \;
Excited Elk
find /opt/backup -type f -mtime +30 -exec rm -f {} \;
find /opt/backup -type f -mtime +30 -delete
find /path ! -newermt "YYYY-MM-DD HH:MM:SS" | xargs rm -rf
find /opt/backup -type f -mtime +30