dynamodb-backup-restore

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2019 License: MIT Imports: 9 Imported by: 0

README

dynamodb-backup-restore

Build Status standard-readme compliant Go Report Card Downloads Latest release

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL