So my little freak-out post about my hard drive just proved itself true. WDE, my 320GB drive full of movies, music, books, and (ironically) backups just gave up the ghost. It actually froze up my machine in it’s dying gasps.
I know it wasn’t full of content, but that’s a big hit. It’s also the newest drive in my machine, lasting one day under 8 months. Thats silly. Plus I voided the warranty on it, so no replacement for me. Oh, bonus note, I bought 100 DVD blanks yesterday to start backing things up on from it.
This little fiasco is going to implement some new procedures. I’m making weekly tree listing of my media folders so I can know what I lose from here on out, and I’m going to back important stuff up to disc. This really sucks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash DATE=`eval date +%F` tree /media/hdb1/Music > MUSIC.$DATE MUSIC=`eval diff MUSIC.$DATE MUSIC.CURRENT` if [ "$MUSIC" = "" ]; then echo "No Change" > MUSIC.$DATE else cp MUSIC.$DATE MUSIC.CURRENT fi tree /media/hdb1/Torrents > TORRENTS.$DATE TORRENTS=`eval diff TORRENTS.$DATE TORRENTS.CURRENT` if [ "$TORRENTS" = "" ]; then echo "No Change" > TORRENTS.$DATE else cp TORRENTS.$DATE TORRENTS.CURRENT fi |
As much as all of this sucks, I really enjoyed learning that much bash scripting.