Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
You can use rsync command to sync two directories, e.g:
rsync
rsync -avzhe ssh"ssh -i yourkey.pempem" /usr/ubuntu root@ec2ipubuntu@ec2ip:/usr/ubuntu
rsync -avzhe ssh -i yourkey.pem /usr/ubuntu root@ec2ip:/usr/ubuntu
rsync -avzhe "ssh -i yourkey.pem" /usr/ubuntu ubuntu@ec2ip:/usr/ubuntu
You can use rsyncrsync command to sync 2 folders.
two directories, e.g. rsync -avzhe ssh -i yourkey.pem /usr/ubuntu root@ec2ip:/usr/ubuntu:
You can use rsync command to sync 2 folders.
e.g. rsync -avzhe ssh -i yourkey.pem /usr/ubuntu root@ec2ip:/usr/ubuntu