Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

working with RSYNC on a command line project to sync my phone with my music folder based on a number of... options. Not sure why it's failing, but here goes:

The command: sudo rsync -arvRn --progress --temp-dir=/home/test/ --files-from=/home/test/Scripts/phone-music-sync.txt /home/test/Music/ /home/test/Phone/sdcard/Music/

And the phone-music-sync.txt file:

    artist\ path/album\ path/
    artist2\ path/

I get the following errors:

rsync: link_stat "artist\ path/album\ path" failed: No such file or directory (2)
rsync: link_stat "artist2\ path/" failed: No such file or directory (2)

Now -- not sure what I am doing wrong here, but I can cd into the directories just fine. I can see the files. If I get rid of the --files-from entry and replace it with an individual path, the rsync will work fine.


  1. The directories DO exist, and there are almost ALWAYS spaces in the path names.
  2. There are files in the first entry and directories to recurse in the second entry of phone-music-sync.txt.
  3. Because of something I can't quite figure out I have to sudo the command, because the phone mounts for only the root user to use.

Thoughts? Been driving me nuts. :)


share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.