Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

So:

  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. :)

-Chow

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.