NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Expanded the examples to have as much detail as the wiki page for the deprecated command.

...

The following example uses the credentials file in a non-default location to download a data .txt data file from the Project_1 collection in DME to a bucket1 bucket in a collectionA collection

Code Block
dm_download_dataobject_s3 /Example_Archive/PI_Lab1/Project_1/data.txt bucket1 collectionAbucket1 folder1/subfolder1/file1.txt /cygdrive/c/Users/JaneDoe/aws/credentials

In this example, the command performs the following:

  • Locates or creates a folder1 folder in the bucket1 bucket.
  • Locates or creates a subfolder1 folder within the folder1 folder.
  • Downloads the data.txt file from the Project_1 collection in DME.
  • Saves that file in the subfolder1 folder as file1.txt. 

Multiple Files Example

For another example, consider the following command.

Code Block
dm_download_dataobject_s3 -f file-list.txt bucket1 collectionAbucket1 folder1/subfolder1

With the following code in the specified file-list.txt file, the above command uses the credentials file in a default location to download multiple data files from various locations in DME.

Code Block
/Example_Archive/PI_Lab2/Project_1/data.txt
/Example_Archive/PI_Lab2/Project_2/image.jpg
/Example_Archive/PI_Lab3/Project_1/image.png

In this example, the command performs the following:

  • Locates or creates a folder1 folder in the bucket1 bucket.
  • Locates or creates a subfolder1 folder within the folder1 folder.
  • Downloads from DME all files listed in the specified collection-list.txt file.
  • Saves those files in the subfolder1 folder with the same file names they have in DME.