I am logged into a Mac (running OSX 10.12) over ssh and have entered the following commends.
REMOTE=Milliways.local:/Users/ian rsync -a --delete-during $REMOTE/bin ~/ rsync -a --delete-during $REMOTE/Documents ~/
This works OK, and updates the appropriate directories.
I tried to include both directories in a single rsync using:-
rsync -a --delete-during $REMOTE/bin $REMOTE/Documents ~/
This produces an error message (basically what I would get from rsync -h)
~$ rsync -a --delete-during $REMOTE/bin $REMOTE/Documents ~/ rsync version 2.6.9 protocol version 29 Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others. <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums …
I have studied the man files, which seem to support what I am trying, specifically
Usage: rsync [OPTION]... SRC [SRC]... DEST
While for these Directories there is no real reason I need to combine, for others I need to use a single SRC to maintain hardlinks.
Can anyone suggest what is wrong?
As suggested in muru's answer I installed brew.