davidolrik / sublime-rsync-ssh

Keep remote directories in sync with local projects.
75 stars 33 forks source link

ssh option of rsync command should be quoted #24

Closed haje01 closed 9 years ago

haje01 commented 9 years ago

I have trouble with following rsync command, which was generated by your plugin:

rsync -v -zar -e ssh -q -T -p 22 -o ConnectTimeout=10 --dry-run --delete /Users/~/index.html ubuntu@~/index.html --exclude=.DS_Store --exclude=.ropeproject --exclude=.*.swp --exclude=.git

which should be fixed like this:

rsync -v -zar -e "ssh -q -T -p 22 -o ConnectTimeout=10" --dry-run --delete /Users/~/index.html ubuntu@~/index.html --exclude=.DS_Store --exclude=.ropeproject --exclude=.*.swp --exclude=.git

Please refer following SO:

http://stackoverflow.com/questions/18270512/rsync-and-ssh-on-android-no-such-file-or-directory

davidolrik commented 9 years ago

It is already quoted, just not in the the output in the console. (When calling subprocess.check_output in list context each element is passed as one string, and all the arguments to -e is concatenated into one string.)

What is your actual problem? - Do you have a error message to a stack trace?

Also, your local path is broken, and your remote is missing a hostname.

haje01 commented 9 years ago

I am sorry to make you confuse with my local path and hostname. It was omitted on purpose. I misunderstood your code, and fault was in my settings. I feel very very sorry..

Closing the issue.

davidolrik commented 9 years ago

No worries =)