On Tue, 8 Sep 2015 10:25:33 -0700 (PDT) Mark Milhollan wrote:
On Mon, 7 Sep 2015, Carl E. Hartung wrote:
On Mon, 7 Sep 2015 13:05:59 -0400 Robert Moskowitz wrote:
rsync -ah --stats --delete -e "ssh -p613 -l root" 192.168.192.2:/etc/name* /home/rgm/data/htt/httnet/homebase/new/etc
Why '-e' (specify remote shell to use)? Are these systems running disparate operating systems?
-e specifies the *local* transport command to use
What?! Straight from the documentation:
" -e, --rsh=COMMAND specify the remote shell to use"
, and in this case it also specifies the remote port (613) and user (root). Granted one should probably use their ssh configuration to do that but it isn't realy "wrong" (to be questioned) to do it via options.
I didn't explicitly state that it was "wrong," just implied (correctly) that it was unnecessary.
/mark
regards,
Carl