LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2012, 10:59 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
cwRsync with file spaces on Windows


I'm trying to use cwRsync to backtup a Solaris machine from a Windows machine unfortunately I need some of the paths to contain spaces and I can't find the right format, can anyone advise?

Code:
"C:\Program Files\cwRsync\bin\rsync.exe" root@testmachine:/cygdrive/c/dest --dry-run -o -r -g -u -p -H -h --progress -c -E --ignore-existing -t -e "/cygdrive/c/Program\ Files/cwRsync/bin/ssh.exe"
 
Old 05-31-2012, 02:42 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It's backslashes or quotes. Not both.


Read these three links for details on how the shell parses arguments and handles quoting.

http://mywiki.wooledge.org/Arguments
http://mywiki.wooledge.org/WordSplitting
http://mywiki.wooledge.org/Quotes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retain Multiple spaces and tabs in a file by c-sh file operation infosrig Linux - Software 3 02-22-2011 03:08 AM
cwrsync - how to handle %userprofile% variables? txref Linux - General 1 06-07-2010 03:06 PM
cwrsync ssh key problem Zetec Linux - Software 4 09-30-2006 03:58 AM
HTML+spaces+Windows Ctawp Programming 1 08-20-2003 01:57 PM
Windows director/file names with spaces. How to access them? correro Linux - General 3 03-10-2003 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration