Skip to content

Instantly share code, notes, and snippets.

@mbacou
Last active October 25, 2016 23:45
Show Gist options
  • Save mbacou/b102c714d8b72755f6f180334e00e52f to your computer and use it in GitHub Desktop.
Save mbacou/b102c714d8b72755f6f180334e00e52f to your computer and use it in GitHub Desktop.
Server backup to S3
aws configure
# Enter backup user credentials
# See https://console.aws.amazon.com/iam/home?region=us-east-1#users/backup
# Default region name [None]: enter us-east-1
# Default output format [None]: enter json
# Upload
aws s3 cp candace-D-drive-backup.data.bak s3://Candace_Backup/WindowsImageBackup/Candace/
# Download
aws s3 cp s3://Candace_Backup/WindowsImageBackup/Candace/candace-D-drive-backup.data.bak ./
# Delete
aws s3 rm s3://Candace_Backup/WindowsImageBackup/Candace/candace-D-drive-backup.data.bak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment