# README
dynamodb-backup-restore
A no sweat backup and restore tool for dynamodb
Table of Contents
Installation
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 employee-details.backup
Backup tables using regex pattern
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -p '.*-details' -m backup -o all-details-tables.backup
Backup all tables
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -p '.*' -m backup -o all-tables.backup
Restore
AWS_REGION=eu-west-1 AWS_SDK_LOAD_CONFIG=true dynamodb-backup-restore -m restore -i all-tables.backup
Usage
dynamodb-backup-restore -h
Usage:
dynamodb-backup-restore [OPTIONS]
Application Options:
-t, --table-name= Table name
-p, --table-name-pattern= Table name pattern
-m, --mode= Mode of operation (backup,restore)
-i, --input-backup-file= Input backup file path
-o, --output-backup-file= Output backup file path
-e, --endpoint-url= Endpoint url of destination dynamodb instance (Very useful for operating with local dynamodb instance)
Help Options:
-h, --help Show this help message
Maintainers
Contribute
- Fork and fix/implement in a branch.
- Make sure tests pass.
- Make sure you've added new coverage.
- Submit a PR.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2019 Kishan B