Skip to content

Instantly share code, notes, and snippets.

@mehmetboraezer
Created June 22, 2017 22:07
Show Gist options
  • Save mehmetboraezer/d0e227dc51cf23afc7a4ff308e0f744a to your computer and use it in GitHub Desktop.
Save mehmetboraezer/d0e227dc51cf23afc7a4ff308e0f744a to your computer and use it in GitHub Desktop.
/etc/cron.daily/fstrim
#!/bin/sh
LOG=/var/log/fstrim/trim.log
echo "Starting trim $(date -R) " >> $LOG
fstrim -v -a >> $LOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment