密钥同步
rsync -rave "ssh -i /opt/us-prod-web.pem" /data/logs/lingoace-market-group/* centos@10.0.2.148:/data/logfile/market-group-1/
参考类型
rsync -rave "ssh -i PEMKEYFILE.pem" /path/to/local/files/* ec2-user@EC2_INSTANCE_HOSTNAME:/path/to/remote/files
rsync -rave "ssh -i /opt/us-prod-web.pem" /data/logs/lingoace-market-group/* centos@10.0.2.148:/data/logfile/market-group-1/
rsync -rave "ssh -i PEMKEYFILE.pem" /path/to/local/files/* ec2-user@EC2_INSTANCE_HOSTNAME:/path/to/remote/files
评论