Name: s3backup
Owner: DigitalOcean
Description: No more custom backup scripts please ...
Forked from: tomcz/s3backup
Created: 2017-09-07 14:53:33.0
Updated: 2018-03-08 21:54:15.0
Pushed: 2017-10-25 19:01:07.0
Size: 7904
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Provides a standard way of backing up an archive to a S3 bucket, and restoring the backed up archive from its S3 bucket. No more custom backup scripts please …
Encrypt file to be backed up (optional but highly recommended). s3backup
encrypts using
AES-CTR and can use either a 256-bit Base64-encoded symmetric key, or a PEM-encoded RSA public
key for encryption. If a public key is provided, s3backup
will generate a random 256-bit
symmetric key which will be encrypted using the public key and stored with the encrypted file.
Calculate a SHA-256 checksum for the file to be uploaded. For encrypted uploads the checksum is calculated on the encrypted file.
Upload to AWS S3 using concurrent uploads to handle large files and store the checksum with the uploaded file.
Download file from AWS S3 using concurrent downloads to handle large files and retrieve the stored checksum of the uploaded file.
Verify that the stored checksum matches the downloaded file.
Optionally, decrypt the downloaded file using either the same symmetric key that was used to encrypt it, or the RSA private key matching the RSA public key that was used for encryption.
s3backup
provides vault-get
and vault-put
commands that allow it to be configured using
secrets held by a vault instance so that you can store encryption
keys and AWS credentials in a secure manner.
Vault integration in s3backup
can be configured from the command line and using vault's own
environment variables.
Clone this repository
clone git@github.com:tomcz/s3backup.git
Install s3backup
and s3keygen
into $GOPATH/bin
install
e:
backup [command]
lable Commands:
t Get local file from S3 bucket using local credentials
lp Help about any command
t Put local file to S3 bucket using local credentials
ult-get Get local file from S3 bucket using credentials from vault
ult-put Put local file to S3 bucket using credentials from vault
rsion Print version and exit
s:
, --help help for s3backup
"s3backup [command] --help" for more information about a command.
Click here for details about using default AWS credentials.
To make things easier, this project also provides s3keygen
to create 256-bit symmetric keys
and 2048-bit RSA private/public key pairs for use by s3backup
.
e:
keygen [command]
lable Commands:
s Print generated AES key
lp Help about any command
a Generate RSA key pair
rsion Print version
s:
, --help help for s3keygen
"s3keygen [command] --help" for more information about a command.