无法将 rsync 错误重定向到 stdout

无法将 rsync 错误重定向到 stdout

大家好,以下工作正常

rsync -r -e "ssh -i /key/file.ssh/" [email protected]:/remote/place /local/place/

但以下

rsync -r -e "ssh -i /key/file.ssh/" [email protected]:/remote/place /local/place/ 2>&1 /some/local/place/log.txt 

产生

Unexpected local arg: /rds/PRJ-InsulinAnalogs/gadi_backup/
If arg is a remote file/dir, prefix it with a colon (:).
rsync error: syntax or usage error (code 1) at main.c(1215) [receiver=3.0.6]

相关内容