![]() |
Page History
...
Note |
---|
This page is a work in progress. |
To You can move a collection or file from one a source location to another in the Archive, execute the a destination location in DME. You can also rename a collection or file.
- Make sure that the destination collection or file does not already exist.
Run the following command:
Code Block dm_rename <move-description.json> [rename-status-file] [REST-response]
The following table describes each parameter:
Parameter | Description | ||
---|---|---|---|
<move-description.json> | The name of the JSON file containing the list of source and destination locations in the following format:
| ||
[rename-status-file] | (TBD) | ||
[REST-response] | (TBD) |
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:
For example, consider the following command:
Code Block |
---|
dm_rename “my-move-list.json” |
where With the following code in the my-move-list.json containsfile, the command moves and renames a collection and a file:
Code Block |
---|
{ "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" } ] } |