dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

sync-music-ad-server.sh (357B)


      1 #!/bin/sh
      2 host=adamsgaard.dk:/Volumes/ext2/Music/
      3 if [ "$(uname)" = "Darwin" ]; then
      4     musicdir="$HOME/Music/iTunes/iTunes Media/Music/"
      5 else
      6     musicdir="$HOME/music/"
      7 fi
      8 
      9 echo "syncing new music to $host"
     10 rsync -rav --progress -e "ssh" "$musicdir" $host
     11 
     12 echo "syncing new music from $host"
     13 rsync -rav --progress -e "ssh" $host "$musicdir"
     14 
     15 mpc update