Skip to content

Commit

Permalink
Merge pull request #218 from SRE-PRG/skip-doc
Browse files Browse the repository at this point in the history
--skip-if-same documentation update
  • Loading branch information
MangyCoyote authored Oct 27, 2020
2 parents 3fdb191 + 573a2bd commit 27b0016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Print token in JSON Web Token (JWT) format.
|**`getblob`**|`--blob`|`--file`|`--if-newer`, `--delete-after-copy`|
|**`getblobs`**|`--container`|`--directory`|`--prefix`, `--if-newer`, `--delete-after-copy`, `--exclude`, `--absolute-paths`|
|**`setblob`**|`--file`|`--blob` |`--force`|
|**`setblobs`**|`--directory`|`--container`|`--force`,`--exclude`|
|**`setblobs`**|`--directory`|`--container`|`--force`,`--exclude`, `--skip-if-same`|

All commands support arguments `--identity` and `--verbose`.

Expand Down Expand Up @@ -103,6 +103,9 @@ Bool. Deletes blob after successful copy. Similar to "move" operations on file s
*`--absolute-paths`*
Bool. Listing of blobs is formatted to absolute URIs path. E.g. `https://{blobStorage-name}.blob.core.windows.net/{container-name}/file841.blob`

*`--skip-if-same`*
Bool. Skip setting particular blob in batch if local file and already existing remote blob are same. Try to upload otherwise.

## Known limitations

Commands `listblobs` and `getblobs` return up to 5,000 blobs filtered on Azure API side by argument `--prefix`.
Expand Down
3 changes: 3 additions & 0 deletions Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ azmi setblobs -d $UPLOAD_DIR -c $CONTAINER --identity $identity
# upload and overwrite existing blobs
azmi setblobs -d $UPLOAD_DIR -c $CONTAINER --force

# the same, but before overwriting verify contents via hashes; upload only if contents are different
azmi setblobs -d $UPLOAD_DIR -c $CONTAINER --force --skip-if-same

# setblobs and getblobs have the same folder structure
azmi getblobs -c $CONTAINER -d $DOWNLOAD_DIR
diff -r $UPLOAD_DIR $DOWNLOAD_DIR # returns exit code 0
Expand Down

0 comments on commit 27b0016

Please sign in to comment.