Skip to content

Instantly share code, notes, and snippets.

@ksdev-pl
Last active November 28, 2015 16:17
Show Gist options
  • Save ksdev-pl/b91a89ac650fbec8a25a to your computer and use it in GitHub Desktop.
Save ksdev-pl/b91a89ac650fbec8a25a to your computer and use it in GitHub Desktop.
Usuń pliki i foldery starsze niż #serwer
find /home/protected/app/storage/backups/* -type d -not -newerct '30 minutes ago' -print0 | xargs -r rm -rf
find /var/www/gistlist.ksdev.pl/app/storage/backups/* -type d -mmin +30 -exec rm -rf {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment