Created
May 11, 2017 16:29
-
-
Save sween/de0b5196219dc8cafaf34f049c44f14f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AWS_CONFIG_FILE="~/.aws/config" | |
echo $1 | |
sudo mkfs -t ext4 $1 | |
sudo mkdir /s3-backup-test | |
sudo chmod -R ugo+rw /s3-backup-test | |
sudo mount $1 /s3-backup-test | |
sudo aws s3 sync s3://backup-test-s3 /s3-backup/test | |
du -h /s3-backup-test | |
ipt (short version): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment