How to backup data direcly into AWS S3


#1

How to backup directly into AWS S3

Context

How to backup directly into AWS S3

Method

The following command can be used to backup data directly into AWS S3:

asbackup --output-file - [...] | gzip -9 [...] | s3cmd put - s3://BUCKET/FILE

The above command requires s3cmd 1.5+ and assumes that you already have Amazon instance roles configured.

Example

asbackup --host 192.168.100.101 --port 3000 -U user -P pass —-namespace NAMESPACE --output-file – | gzip -9 | s3cmd put – s3://mybucket/mybackup

Notes

  • You can also use other compression tools like pigz.

  • You can also use AWS CLI instead of s3cmd.

Reference Links

http://www.aerospike.com/docs/tools/backup/asbackup.html

Keywords

BACKUP S3

Timestamp

5/17/2017