linux - old rsync and spaces in filenames -


source directory determined so:

show=${pwd##*/} src=wells@server.com:"/mnt/bigfish/video/tv/${show}/" 

so comes out like:

wells@server.com:/mnt/bigfish/video/tv/the name of show spaces/ 

then trying run rsync so:

rsync -avz -e ssh "${src}" . 

but tells me ""/mnt/bigfish/video/tv/the" not directory, ""/mnt/bigfish/video/tv/name" not directory, etc, many space-delimited words in name of source directory.

how can rectify egregiously annoying issue?

update i'm running on os 10.6, , ended string-replacing spaces escaped spaces so:

src=wells@kittenfactory.com:"/mnt/bigfish/video/tv/${show// /\ }/" 

from rsync manual:

-s, --protect-args
option sends filenames , options remote rsync without allowing remote shell interpret them. means spaces not split in names, , non-wildcard special characters not translated (such ~, $, ;, &, etc.). wildcards expanded on remote host rsync (instead of shell doing it).


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -