Currently Being ModeratedJul 11, 2011 8:08 PM (in response to Ben Sciascia)
If that second example is your specific entry then the answer is obvious.
You need to more closely follow your quotes. All quotes have to be balanced (meaning that whenever you open a set of quotes there needs to be a matching close quote).
In your case you state:
rsync -avz -e --rsync-path="rsync --log-file=/Users/username/rsync.log"
Note how your quotes are arranged... you're telling rsync that --rsync-path is "rsync --log-file=/Users/username/rsync.log", and there's no surprise that it fails.
The correct format for this would be more like:
rsync -avz -e --rsync-path="rsync" --log-file="/Users/username/rsync.log"
(although I also question the validity of the --rsync-path command... are you sure that's right? because I'm not.
Beyond that, though, the file arguments are incorrect - or, at least, there's a superflous 'ssh' command that's snuck its way in there somehow...
Currently Being ModeratedFeb 22, 2014 12:05 PM (in response to Camelot)
Camelot was right, you do not need "--rsync-path" to output a log-file of rsync's acitivity.
use something like:
rsync -avz -e path/to/source path/to/destination--log-file=/Users/username/rsync.log
No need to use quotes, Terminal escapes a space putting "\ " before a file-path containing spaces, e. g. "Your data" will be escaped as "Your\ data" automatically when you drag and drop the destination folder for the log from a Finder window to the Terminal window (=shell).
Message was edited by: tomasio