Skip to content

Instantly share code, notes, and snippets.

@jaysonrowe
Created March 1, 2013 21:59
Show Gist options
  • Save jaysonrowe/5068211 to your computer and use it in GitHub Desktop.
Save jaysonrowe/5068211 to your computer and use it in GitHub Desktop.
Trim script
#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment