Skip to content

Instantly share code, notes, and snippets.

@sween
Created May 11, 2017 16:29
Show Gist options
  • Save sween/de0b5196219dc8cafaf34f049c44f14f to your computer and use it in GitHub Desktop.
Save sween/de0b5196219dc8cafaf34f049c44f14f to your computer and use it in GitHub Desktop.
#!/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