Buscar ficheros por días y borrarlos en bash

in bash •  5 years ago 

Borrar todas las copias de seguridad superior a dos meses (120 días)

find /var/backups/ -mtime +120 -type d -exec rm -f {} \;
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!