dynamodb-backup-restore
A no sweat backup and restore tool for dynamodb
Table of Contents
Install
Using Homebrew
brew tap kishaningithub/tap
brew install dynamodb-backup-restore
Using Binary
# All unix environments with curl
curl -sfL https://raw.githubusercontent.com/kishaningithub/dynamodb-backup-restore/master/install.sh | sh -s -- -b /usr/local/bin
# In alpine linux (as it does not come with curl by default)
wget -O - -q https://raw.githubusercontent.com/kishaningithub/dynamodb-backup-restore/master/install.sh | sudo sh -s -- -b /usr/local/bin
Example
Backup single table
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -t employee-details -m backup -o backup-file
Backup tables using regex pattern
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -t '.*-details' -m backup -o backup-file
Backup all tables
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -t '.*' -m backup -o backup-file
Restore
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -m restore -i backup-file
Usage
dynamodb-backup-restore -h
Usage:
dynamodb-backup-restore [OPTIONS]
Application Options:
-t, --table-name= Table name pattern
-m, --mode= Mode of operation (backup,restore)
-o, --output= Output file for backup
-i, --input= Input file for restore
-e, --endpoint-url= Endpoint url of destination dynamodb instance (Very useful for restoring data into local dynamodb instance)
Help Options:
-h, --help Show this help message
Maintainers
Contribute
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2019 Kishan B