Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to sync music to my Android Phone without having to load something like banshee. I know there are plenty of ways to sync files, but I'm interested in syncing playlists and having the playlists dictate which files are synced.

share|improve this question
What do you consider a "playlist"? – Falmarri Apr 15 '11 at 0:42

Assuming an m3u exported from banshee and you have your Android mounted you can do something like:

rsync -avu --files-from=yourlist.m3u  <MUSIC_DIR>  /media/ANDROID/<ANDROID_MUSIC_DIR>

For example:

rsync -avu --files-from=yourlist.m3u "/home/user/Music" "/media/ANDROID/MUSIC"

You can also add --delete

rsync -avu --delete --files-from=yourlist.m3u "/home/user/Music" "/media/ANDROID/MUSIC"

I tested with a simple m3u and worked, but it may need some tweaks for a complex one.

share|improve this answer
I do something somewhat similar, but I have QuickSSHD on my android so I sync through ssh and dont have to mount it (it also makes the process faster since the android can scan its files instead of having to go through a mount). The other difference is I have a list of which m3u files I want synced and basically merge them all together (and include the m3u files in the sync) for one big rsync. But this is definitely the right direction. – Patrick Apr 15 '12 at 1:22

Without more information, I can only assume you mean that you want certain files (playlists) to contain rules to move certain other files (music) to another location (your android).

Seeing as you don't want to start any applications, I would suggest using a simple text file that contains the names of songs in the playlist. Write as many of these as you want.

Then you could write a short script called playlist_sync that will read the lines in each playlist, search your music directory (using a regex) for files that match your song names and copy them over to a certain device.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.