Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ $1 == "help" ];
- then
- echo "First argument: Path of file on Remote host. \nSecond argument: Path of directory on Local host.\nThird argument: OS type.
- Forth argument: configure aws boolean values true/false.\nFifth argument: S3Uri."
- else
- scp -rv $6:$1 $2
- if [ $3 == "mac" ]; then
- brew install awscli
- else
- apt-get install -y awscli
- fi
- if [ $4 ]; then
- aws configure
- fi
- aws s3 cp $2 s3://$5 --recursive
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement