11dynamodump
22==========
33
4- [ ![ Buildstatus] ( https://travis-ci.org/bchew/dynamodump.svg )] ( https://travis-ci.org/bchew/dynamodump )
4+ [ ![ Buildstatus] ( https://travis-ci.org/bchew/dynamodump.svg )] ( https://travis-ci.org/bchew/dynamodump ) [ ![ DockerBuildstatus ] ( https://img.shields.io/docker/build/bchew/dynamodump.svg )] ( https://hub.docker.com/r/bchew/dynamodump/ )
55
66Simple backup and restore script for Amazon DynamoDB using boto to work similarly to mysqldump.
77
@@ -12,8 +12,9 @@ dynamodump supports local DynamoDB instances as well (tested with [DynamoDB Loca
1212Usage
1313-----
1414```
15- usage: dynamodump.py [-h] [-a {zip,tar}] [-b BUCKET] [-m MODE] [-r REGION]
16- [--host HOST] [--port PORT] [--accessKey ACCESSKEY]
15+ usage: dynamodump.py [-h] [-a {zip,tar}] [-b BUCKET]
16+ [-m {backup,restore,empty}] [-r REGION] [--host HOST]
17+ [--port PORT] [--accessKey ACCESSKEY]
1718 [--secretKey SECRETKEY] [-p PROFILE] [-s SRCTABLE]
1819 [-d DESTTABLE] [--prefixSeparator PREFIXSEPARATOR]
1920 [--noSeparator] [--readCapacity READCAPACITY] [-t TAG]
@@ -31,7 +32,8 @@ optional arguments:
3132 -b BUCKET, --bucket BUCKET
3233 S3 bucket in which to store or retrieve backups.[must
3334 already exist]
34- -m MODE, --mode MODE 'backup' or 'restore' or 'empty'
35+ -m {backup,restore,empty}, --mode {backup,restore,empty}
36+ Operation to perform
3537 -r REGION, --region REGION
3638 AWS region to use, e.g. 'us-west-1'. Can use
3739 AWS_DEFAULT_REGION for local testing. Use 'local' for
@@ -44,8 +46,7 @@ optional arguments:
4446 Secret key of local DynamoDB [required only for local]
4547 -p PROFILE, --profile PROFILE
4648 AWS credentials file profile to use. Allows you to use
47- a profile instead of accessKey, secretKey
48- authentication
49+ a profile instead accessKey, secretKey authentication
4950 -s SRCTABLE, --srcTable SRCTABLE
5051 Source DynamoDB table name to backup or restore from,
5152 use 'tablename*' for wildcard prefix selection or '*'
0 commit comments