Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lucassmacedo/e273d36d747b03ab6b22f518807415c9 to your computer and use it in GitHub Desktop.
Save lucassmacedo/e273d36d747b03ab6b22f518807415c9 to your computer and use it in GitHub Desktop.
Script para pagar apagar arquivos na pasta com mais de 2 dias
#/bin/bash
find /bkp/postgres/ -mtime +2 -exec rm {} \;
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment