rsync option is not working.

Latest response

Hi all.

Trying a command with rsync but its not working. What I'm doing wrong? I'm trying to tranfer some files and change the ownership of the file on destination.

rsync -av --usermap=:applmgr --chmod=ugo=rwx --include '.txt' --exclude '*' /usr/tmp/ root@uscprod2:/home/account/boxing/

Error
rsync: --usermap=*:applmgr: unknown option
rsync error: syntax or usage error (code 1) at main.c(1449) [client=3.0.6]

this is the version of the rsync.

Thanks in advance.

Responses

The --usermap option has been introduced in version 3.1.0 (http://rsync.samba.org/ftp/rsync/src/rsync-3.1.0-NEWS) and you are running 3.0.6.

Thanks for the response. I will check If I can update my rsync.

If rsync being used as a part of shell script, check the she bang first, some of the rsync options are not compatible with ksh sh, try to use bash. mostly issue will be addressed.

Thanks

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.