[CentOS] rsync question

Fri Sep 11 03:19:00 UTC 2015
Carl E. Hartung <carlh04426 at gmail.com>

On Thu, 10 Sep 2015 22:50:47 -0400
Robert Moskowitz wrote:

> > That will use the default port on the remote host, you can override
> > that without specifying the -e if required using -p <port>.  
> $ rsync -ah --stats --delete -p 613  root at 
> /home/rgm/data/htt/httnet/homebase/new/dhcp
> Unexpected remote arg: root at
> rsync error: syntax or usage error (code 1) at main.c(1330)
> [sender=3.1.1]
> So not there yet.  :(

From 'man rsync':

-p, --perms     This option causes the receiving rsync to set the destination
                permissions to be the same as the source per- missions.

Try this:

rsync -ah --stats --delete
root at /home/rgm/data/htt/httnet/homebase/new/dhcp