You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-8Lines changed: 46 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,8 @@ __Arguments__
161
161
162
162
It is suitable for restoring large tables without needing to write to disk or use a large amount of memory. Use it on an AWS EC2 instance for best results and to minimise network latency, this should yield restore speeds of around 15min per GB.
163
163
164
+
Use `--overwrite` if the table already exists. Otherwise it will attempt to generate table on the fly.
165
+
164
166
Can be run as a command line script or as an npm module.
165
167
166
168
# Command line usage
@@ -174,17 +176,54 @@ Can be run as a command line script or as an npm module.
174
176
-V, --version output the version number
175
177
-s, --source [path] Full S3 path to a JSON backup file (Required)
176
178
-t, --table [name] Name of the Dynamo Table to restore to (Required)
179
+
-o, --overwrite Table already exists, skip auto-create. Default is false.
177
180
-c, --concurrency <requestcount> Number of concurrent requests & dynamo capacity units. Defaults to 200.
178
181
-pk, --partitionkey [columnname] Name of Primary Partition Key. If not provided will try determine from backup.
179
182
-sk, --sortkey [columnname] Name of Secondary Sort Key. Ignored unless --partitionkey is provided.
180
183
-rc, --readcapacity <units> Read Units for new table (when finished). Default is 5.
181
-
-wc, --writecapacity <units> Write Units for new table (when finished). Default is 5.
182
-
-sf, --stop-on-failure Stop process when the same batch fails to restore 3 times. Defaults to false.
184
+
-wc, --writecapacity <units> Write Units for new table (when finished). Default is --concurrency.
185
+
-sf, --stop-on-failure Stop process when the same batch fails to restore multiple times. Defaults to false.
183
186
--aws-key <key> AWS access key. Will use AWS_ACCESS_KEY_ID env var if --aws-key not set
184
187
--aws-secret <secret> AWS secret key. Will use AWS_SECRET_ACCESS_KEY env var if --aws-secret not set
185
188
--aws-region <region> AWS region. Will use AWS_DEFAULT_REGION env var if --aws-region not set
0 commit comments