Bug 7939 - "Unexpected remote arg" when do local sync backup
"Unexpected remote arg" when do local sync backup
Status: RESOLVED INVALID
Product: rsync
Classification: Unclassified
Component: core
3.0.7
x64 Linux
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-28 08:15 UTC by Drunkard Zhang
Modified: 2011-02-22 09:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Drunkard Zhang 2011-01-28 08:15:21 UTC
Exec of rsync in script failed. Debug option "--log-file=/tmp/rlog" show this:

2011/01/28 21:50:02 [5150] Unexpected remote arg: 山东快书-八岔路:武松装媳妇-君子剑.mp3
2011/01/28 21:50:02 [5150] rsync error: syntax or usage error (code 1) at main.c(1204) [sender=3.0.7]

Standard output show:

21:45:27 ~ $ ./sync_data
sent 204728 bytes  received 373 bytes  410202.00 bytes/sec
total size is 21420077981  speedup is 104436.73
Unexpected remote arg: \#345\#261\#261\#344\#270\#234\#345\#277\#253\#344\#271\#246-\#345\#205\#253\#345\#262\#224\#350\#267\#257:\#346\#255\#246\#346\#235\#276\#350\#243\#205\#345\#252\#263\#345\#246\#207-\#345\#220\#233\#345\#255\#220\#345\#211\#221.mp3
rsync error: syntax or usage error (code 1) at main.c(1204) [sender=3.0.7]

Looks like rsync explained something in this filename as arg.
Comment 1 Wayne Davison 2011-02-22 09:47:57 UTC
There's a colon in that name, which indicates that it is a host:file, which is not allowed on a local transfer.  You can work around this by specify something with a slash prior to the colon, such as prefixing the name with "./".