Last active
August 29, 2015 14:13
-
-
Save pelsedyr/6d39f7d7481859fd524f to your computer and use it in GitHub Desktop.
A Cron script that invokes daily run of fstrim and writes out results to a log.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Egen script for å kjøre fstrim og skrive ut resultatet til en log | |
LOG=/var/log/trim.log | |
echo "Starting trim $(date -R) " >> $LOG | |
fstrim -v / >> $LOG | |
fstrim -v /home >> $LOG | |
fstrim -v /boot >> $LOG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment