dynamodump | Simple backup and restore for Amazon DynamoDB using AWS SDK | AWS library
kandi X-RAY | dynamodump Summary
kandi X-RAY | dynamodump Summary
Simple backup and restore script for Amazon DynamoDB using AWS SDK for Python (boto3) to work similarly to mysqldump. Suitable for DynamoDB usages of smaller data volume which do not warrant the usage of AWS Data Pipeline for backup/restores/empty. dynamodump supports local DynamoDB instances as well (tested with DynamoDB Local).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Restore a table from a source table
- Update the provisioned throughput of a table
- Performs a batch write
- Wait for a table to become active
- Prepare the given Gsi object for restoring
- Prepare the provisioned throughput for the provisioned throughput
- Backup a table
- Make a directory
- Do an empty operation
- Delete a table
- Get an S3 archive
- Return a boto3 client
- Delete table
- Create a tar archive
- Returns a list of matching tables
- Get the table name matching the given tag
- Returns a list of table names matching the given wildcard
- Upload a file to S3
- Change the prefix of a table
dynamodump Key Features
dynamodump Examples and Code Snippets
Community Discussions
Trending Discussions on dynamodump
QUESTION
I want to create dynamodb tables in localhost I have downloaded my remote dynamodb tables using this script.
https://github.com/bchew/dynamodump
This script I got from this answer over here. How to export an existing dynamo table schema to json?
And I got a local back up of all the tables in my local machine Now I want to create those tables in my dynamodb local system for that reason I am uploading my tables to local DB using this command.
...ANSWER
Answered 2018-Aug-01 at 06:05@wolfson thank you for your suggestion after working some time removing these stuff from the schema helped me to create a table anyway. I removed
QUESTION
Not able to download multiple dynamoDB tables by using dynamodump
$ python dynamodump.py -m backup -r us-east-1 -s 'DEV_*'
INFO:root:Found 0 table(s) in DynamoDB host to backup:
INFO:root:Backup of table(s) DEV_* completed!
But i'm able to download if i give single table name and "*" (download all DynamoDB tables).
I have followed this procedure which is in the below link: https://github.com/bchew/dynamodump
Can anyone suggest me how to download multiple dynamoDB tables with the specific pattern (like QA_* / DEV_* / PROD_* / TEST_*)
...ANSWER
Answered 2017-Jan-19 at 11:37for i in aws dynamodb list-tables | jq -r ''| grep 'QA*'| tr ',' ' ' | cut -d'"' -f2
;
do
echo "======= Starting backup of $i date
=========="
python dynamodump.py -m backup -r us-east-1 -s $i
done
The above script will work if you want to take multiple dynamoDB tables backup. prior running the script you have to download the jq: (https://stedolan.github.io/jq/download/)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dynamodump
You can use dynamodump like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page