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 [email protected]:/home/bitnami/apps/wordpress/htdocs/wp-content/themes/

ssh: ssh -i /path/my-key-pair.pem [email protected]

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