Skip to content

Instantly share code, notes, and snippets.

@TIBTHINK
Created April 29, 2021 01:44
Show Gist options
  • Save TIBTHINK/ca79114e484a924c17a491f7c93eb44e to your computer and use it in GitHub Desktop.
Save TIBTHINK/ca79114e484a924c17a491f7c93eb44e to your computer and use it in GitHub Desktop.
removing backups older than 2 weeks
find /home/dev/backups -type f -mtime +14 -name '*.gz' -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment