Comments (3)
Hi Ryan, the code currently assumes the 'environment prefix' is separated from the table name by a -
. However, in your case, it is split by .
thus the reason why it was not working correctly.
I've clarified this behavior in the readme to make it clear in the latest update to master (ffe4d5f, 0.1.13) and have added a --prefixSeparator
optional argument so your command should work correctly now:
python dynamodump.py --mode backup --region us-east-1 --srcTable test* --prefixSeparator .
As for your query on test.atlas
, unfortunately this would not be supported currently as the text before the separator is being treated as the environment and this change would impact the overall behaviour (as it seems you're using another namespace level). If you have ideas on how to do this, feel free to open a PR.
from dynamodump.
Thanks for looking into this. Why do you have the namespace rules at all? Why not just use traditional globbing like Unix shells use, and treat all non-wildcards equally?
In my case, I have 7 tables named test.atlas.<something>
and 1 table named test.scorekeeper.<something>
. I need to export all of the atlas tables but need to skip the scorekeeper one. It has millions of records and an export would take days to finish. I wrote a wrapper script that runs dynamodump on each table separately, but I'd prefer to use the wildcard syntax if I can.
from dynamodump.
It's not a namespace rule per se, just how the script assumes the first part of the table name to be the 'environment' as it was written with the idea of backing up/restoring data between different environments, for simplicity sake.
You're right that it probably can be switched to use wildcards as it is done in traditional globbing, but as I've mentioned before, this involves a change in behaviour and I would not be looking to change it for now. :)
from dynamodump.
Related Issues (19)
- Support global secondary indexes HOT 1
- multiple gsi HOT 1
- Ability to Simply Create Tables
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- Restoring dynamoDB in another AWS Account HOT 5
- Ability To Specify Filename/Version/Date
- Unable to use local DynamoDB restore from C# HOT 1
- Incompatible with Localstack HOT 2
- Sync function?
- LocalSecondaryIndexes HOT 5
- I would like to write an AWS blog about this repo HOT 1
- Can not use wild card in many tables HOT 7
- Error encountered when restoring a table with Global Secondary Index using --billingMode PAY_PER_REQUEST HOT 1
- srcTable don't accept dashes
- Restoring database incorrectly processes binary objects inside maps
- Feature request: expired token backoff/retry HOT 1
- Write throughput changes should override indexes as well HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamodump.