Skip to content

Instantly share code, notes, and snippets.

@alekc
Last active October 20, 2019 15:44
Show Gist options
  • Save alekc/83294ed38f95c79333a51f8aad9af137 to your computer and use it in GitHub Desktop.
Save alekc/83294ed38f95c79333a51f8aad9af137 to your computer and use it in GitHub Desktop.
Clean old backups.
#!/bin/bash
find /mysql-backup/archive -maxdepth 1 -mindepth 1 -type d -ctime +15 -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment