NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This page is a work in progress.

To move a collection or file from one location to another in the Archive, execute the command:

dm_rename <move-description.json> 

dm_rename <description.json> [rename-status-file] [REST-response]

where the move-description.json file provides the list of source and destination locations in the following format:

     {

       "moveRequests": [

        {

          "sourcePath": <full path in the Archive to the file/collection to be moved>

          "destinationPath": <full path in the Archive to the new file/collection>

        }

      ]

     }

Note that the destination collection or file should not be existing prior to executing this command.

Example: 

Below is an example command to move a collection, and a file:

dm_rename “my-move-list.json”

where my-move-list.json contains:

     {

       "moveRequests": [

        {

           "sourcePath": "/TEST_Archive/PI_Lab1/Project_Orig",

          "destinationPath": "/TEST_Archive/PI_Lab2/Project_New"

        },

        {

          "sourcePath": "/TEST_Archive/PI_Lab1/Project_Name1/File_Orig",

          "destinationPath": "/TEST_Archive/PI_Lab2/Project_Name2/File_New"

        }

      ]

     }

  • No labels