dotfiles

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

commit be8b925921dec7916c8a84d9c619292b5a20ef59
parent 3c2cbb4f5df6ba3946e20efde9df755dda73670a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 28 Dec 2018 16:12:28 +0100

Use ad-server for music syncing

Diffstat:
Alinks/bin/sync-music-ad-server.sh | 15+++++++++++++++
Dlinks/bin/sync-music-idkfa.sh | 15---------------
2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/links/bin/sync-music-ad-server.sh b/links/bin/sync-music-ad-server.sh @@ -0,0 +1,15 @@ +#!/bin/bash +host=ad@ad-server:/Volumes/ext2/Music/ +if [ "$(uname)" = "Darwin" ]; then + musicdir="$HOME/Music/iTunes/iTunes Media/Music/" +else + musicdir="$HOME/music/" +fi + +echo "syncing new music from $host" +rsync -rav --progress -e "ssh" $host "$musicdir" + +echo "syncing new music to $host" +rsync -rav --progress -e "ssh" "$musicdir" $host + +mpc update diff --git a/links/bin/sync-music-idkfa.sh b/links/bin/sync-music-idkfa.sh @@ -1,15 +0,0 @@ -#!/bin/bash -host=ad@idkfa.ucsd.edu:/home/ad/music/ -if [ "$(uname)" = "Darwin" ]; then - musicdir="$HOME/Music/iTunes/iTunes Media/Music/" -else - musicdir="$HOME/music/" -fi - -echo "syncing new music from $host" -rsync -rav --progress -e "ssh" $host "$musicdir" - -echo "syncing new music to $host" -rsync -rav --progress -e "ssh" "$musicdir" $host - -mpc update