我想将我在亚马逊实例中的文件夹 rync 到网络上的我的 linux pc。我尝试了以下操作,但它给了我错误,因为我知道我犯了一些语法错误..
rsync -avPn "ssh -i /keys/mykey.pem ec2-user@X.X.X.X:/data/" /data/
请帮助我改进我的命令。
错误:
sending incremental file list
rsync: change_dir "/root//ssh -i /keys/mykey.pem ec2-user@x.x.x.x:/data/" failed: No such file or directory (2)
sent 12 bytes received 12 bytes 48.00 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1072) [sender=3.0.9]