An mpd playlist looks like this:
syncrel.m3u
Bob Dylan - The Times They Are A-Changin' [V0]/04. One Too Many Mornings.mp3
Bob Dylan - The Times They Are A-Changin' [V0]/01. The Times They Are A-Changin'.mp3/
Or it can be configured to store the full path:
syncfull.m3u
/home/share/media/audio/Bob Dylan - The Times They Are A-Changin' [V0]/01. The Times They Are A-Changin'.mp3
/home/share/media/audio/Bob Dylan - The Times They Are A-Changin' [V0]/03. With God On Our Side.mp3
I want to rsync
those files to /media/sdg/MUSIC. I want it to delete files from the destination if they get removed from the playlist.
I can not get the incantation right. I thought I had it last night, but when I reran it, it didn't work. I've tried every combination of include-from
, exclude=*
, etc. I can think of.
[
as a pattern character. See my edited answer. (To remove your first comment, click the×
button that appears when you hover the mouse above it.) – Gilles 'SO- stop being evil' Jun 01 '11 at 20:48sed -e 's/[*?\[]/\\\\&/g')
to make the above work, otherwise it was skipping the files such asAlbum [2014]/01.hip-hop.mp3
– Pratyush Oct 27 '14 at 20:24