rsync -aP -e "ssh -i /home/ubuntu/key" root@12.67.56.34:/play/play-1.2.5 /opt
This command will copy folder play to folder opt
rsync -aP -e "ssh -i /home/ubuntu/key" root@12.67.56.34:/play/play-1.2.5 /opt
This command will copy folder play to folder opt