Skip to content

Instantly share code, notes, and snippets.

@mwin007
Last active April 28, 2020 21:33
Show Gist options
  • Save mwin007/762a9b048f6948306cc2e6bfe246a53e to your computer and use it in GitHub Desktop.
Save mwin007/762a9b048f6948306cc2e6bfe246a53e to your computer and use it in GitHub Desktop.

AWS Notes

File permission for pem file chmod 400 {keyfile}.pem

Back with tar and today's date: tar -zcvf "htdocs$(date '+%Y-%m-%d').tar.gz" htdocs

Rsync example \n rsync -av — progress -e “ssh -i /home/mn/Documents/AWS/LightsailDefaultKey-us-east-1.pem” /home/mn/wordpress-5.4-0/apps/wordpress/htdocs/wp-content/themes/porto bitnami@3.91.1.156:/home/bitnami/apps/wordpress/htdocs/wp-content/themes/

ssh: ssh -i /path/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment