Skip to content

Instantly share code, notes, and snippets.

@ravishtiwari
Created November 4, 2019 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravishtiwari/e1b4c3709d65893004b3731e8aad0c74 to your computer and use it in GitHub Desktop.
Save ravishtiwari/e1b4c3709d65893004b3731e8aad0c74 to your computer and use it in GitHub Desktop.
copy with rsync over ssh
rsync -arv -e "ssh -A -i ../keys/Ops-Key.pem" \
--exclude .git \
--exclude pythonenv \
--exclude api/node_modules \
--exclude app \
--exclude compl.1 \
--exclude data/db \
--exclude app/wp_md_azi_incl \
--exclude _md_azi_incl__ \
--exclude wp_md_azi_incl.zip \
--exclude .idea \
./* ubuntu@34.241.171.120:/home/ubuntu/EC2Job/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment