Guest User

Untitled

a guest
Feb 12th, 2018
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. rsync -avL --progress -e ssh -i ~/mykeypair.pem ~/Sites/my_site/* root@ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com:/var/www/html/
  2.  
  3. rsync -avz ~/Sites/mysite/* -e "ssh -i ~/.ssh/id_rsa.pub" root@ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com:/var/www/html/
  4.  
  5. ssh -i ~/path/mykeypair.pem
  6. ubuntu@ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com
  7.  
  8. rsync -avL --progress -e "ssh -i /path/to/mykeypair.pem"
  9. ~/Sites/my_site/*
  10. root@ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com:/var/www/html/
  11.  
  12. rsync -av --progress -e ssh /folder1/folder2/* root@xxx.xxx.xxx.xxx:/folder1/folder2
  13.  
  14. #!/bin/bash
  15.  
  16. RSYNC = /usr/bin/rsync
  17.  
  18. $RSYNC [options] [source] [destination]
  19.  
  20. ssh-keygen -t rsa
  21.  
  22. sudo rsync -azvv -e "ssh -i /home/ubuntu/key-to-ec2.pem" ec2-user@xx.xxx.xxx.xx:/home/ec2-user/source/ /home/ubuntu/target/
  23.  
  24. nohup rsync -zravu --partial --progress -e "ssh -i xxxx.pem" ubuntu@xx.xx.xx.xx:/mnt/data /mnt2/ &
  25.  
  26. rsync -avz -e "ssh -i /path/to/key.pem" /path/to/file.txt <username>@<ip/domain>:/path/to/directory/
  27.  
  28. rsync -avz -e "ssh -i /path/to/key.pem" <username>@<ip/domain>:/path/to/directory/file.txt /path/to/directory/
Add Comment
Please, Sign In to add comment