index.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="canonical" href="https://OLC-LOC-Bioinformatics.github.io/AzureStorage/move/">
  9. <link rel="shortcut icon" href="../img/favicon.ico">
  10. <title>Move - OLC Bioinformatics Azure Storage</title>
  11. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700" />
  12. <link rel="stylesheet" href="../css/theme.css" />
  13. <link rel="stylesheet" href="../css/theme_extra.css" />
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" />
  15. <script>
  16. // Current page data
  17. var mkdocs_page_name = "Move";
  18. var mkdocs_page_input_path = "move.md";
  19. var mkdocs_page_url = "/AzureStorage/move/";
  20. </script>
  21. <script src="../js/jquery-2.1.1.min.js" defer></script>
  22. <script src="../js/modernizr-2.8.3.min.js" defer></script>
  23. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
  24. <script>hljs.initHighlightingOnLoad();</script>
  25. </head>
  26. <body class="wy-body-for-nav" role="document">
  27. <div class="wy-grid-for-nav">
  28. <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
  29. <div class="wy-side-scroll">
  30. <div class="wy-side-nav-search">
  31. <a href=".." class="icon icon-home"> OLC Bioinformatics Azure Storage</a>
  32. <div role="search">
  33. <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
  34. <input type="text" name="q" placeholder="Search docs" title="Type search term here" />
  35. </form>
  36. </div>
  37. </div>
  38. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  39. <ul>
  40. <li class="toctree-l1"><a class="reference internal" href="..">Home</a>
  41. </li>
  42. </ul>
  43. <ul>
  44. <li class="toctree-l1"><a class="reference internal" href="../install/">Installation</a>
  45. </li>
  46. </ul>
  47. <ul>
  48. <li class="toctree-l1"><a class="reference internal" href="../credentials/">Credentials</a>
  49. </li>
  50. </ul>
  51. <ul>
  52. <li class="toctree-l1"><a class="reference internal" href="../upload/">Upload</a>
  53. </li>
  54. </ul>
  55. <ul>
  56. <li class="toctree-l1"><a class="reference internal" href="../sas_url/">SAS URL</a>
  57. </li>
  58. </ul>
  59. <ul class="current">
  60. <li class="toctree-l1 current"><a class="reference internal current" href="./">Move</a>
  61. <ul class="current">
  62. <li class="toctree-l2"><a class="reference internal" href="#general-usage">General usage</a>
  63. </li>
  64. <li class="toctree-l2"><a class="reference internal" href="#azuremove-container">AzureMove container</a>
  65. <ul>
  66. <li class="toctree-l3"><a class="reference internal" href="#required-arguments">Required arguments:</a>
  67. </li>
  68. <li class="toctree-l3"><a class="reference internal" href="#optional-arguments">Optional arguments:</a>
  69. </li>
  70. <li class="toctree-l3"><a class="reference internal" href="#example-commands">Example commands:</a>
  71. </li>
  72. <li class="toctree-l3"><a class="reference internal" href="#usage">Usage</a>
  73. </li>
  74. </ul>
  75. </li>
  76. <li class="toctree-l2"><a class="reference internal" href="#azuremove-file">AzureMove file</a>
  77. <ul>
  78. <li class="toctree-l3"><a class="reference internal" href="#required-arguments_1">Required arguments:</a>
  79. </li>
  80. <li class="toctree-l3"><a class="reference internal" href="#optional-arguments_1">Optional arguments:</a>
  81. </li>
  82. <li class="toctree-l3"><a class="reference internal" href="#example-commands_1">Example commands:</a>
  83. </li>
  84. <li class="toctree-l3"><a class="reference internal" href="#usage_1">Usage</a>
  85. </li>
  86. </ul>
  87. </li>
  88. <li class="toctree-l2"><a class="reference internal" href="#azuremove-folder">AzureMove folder</a>
  89. <ul>
  90. <li class="toctree-l3"><a class="reference internal" href="#required-arguments_2">Required arguments:</a>
  91. </li>
  92. <li class="toctree-l3"><a class="reference internal" href="#optional-arguments_2">Optional arguments:</a>
  93. </li>
  94. <li class="toctree-l3"><a class="reference internal" href="#example-commands_2">Example commands:</a>
  95. </li>
  96. <li class="toctree-l3"><a class="reference internal" href="#usage_2">Usage</a>
  97. </li>
  98. </ul>
  99. </li>
  100. </ul>
  101. </li>
  102. </ul>
  103. <ul>
  104. <li class="toctree-l1"><a class="reference internal" href="../download/">Download</a>
  105. </li>
  106. </ul>
  107. <ul>
  108. <li class="toctree-l1"><a class="reference internal" href="../set_tier/">Set Tier</a>
  109. </li>
  110. </ul>
  111. <ul>
  112. <li class="toctree-l1"><a class="reference internal" href="../delete/">Delete</a>
  113. </li>
  114. </ul>
  115. <ul>
  116. <li class="toctree-l1"><a class="reference internal" href="../automate/">Automate</a>
  117. </li>
  118. </ul>
  119. <ul>
  120. <li class="toctree-l1"><a class="reference internal" href="../list/">List</a>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. </nav>
  126. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  127. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  128. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  129. <a href="..">OLC Bioinformatics Azure Storage</a>
  130. </nav>
  131. <div class="wy-nav-content">
  132. <div class="rst-content">
  133. <div role="navigation" aria-label="breadcrumbs navigation">
  134. <ul class="wy-breadcrumbs">
  135. <li><a href="..">Docs</a> &raquo;</li>
  136. <li>Move</li>
  137. <li class="wy-breadcrumbs-aside">
  138. <a href="https://github.com/OLC-LOC-Bioinformatics/AzureStorage/edit/main/docs/move.md"
  139. class="icon icon-github"> Edit on GitHub</a>
  140. </li>
  141. </ul>
  142. <hr/>
  143. </div>
  144. <div role="main">
  145. <div class="section">
  146. <h2 id="azuremove">AzureMove</h2>
  147. <p>Move containers, files, or folders within your Azure storage account.</p>
  148. <p>Choose either the <a href="#azuremove-container"><code>container</code></a>, <a href="#azuremove-file"><code>file</code></a>, or <a href="#azuremove-folder"><code>folder</code></a> functionality</p>
  149. <h4 id="general-usage">General usage</h4>
  150. <pre><code>usage: AzureMove [-h] {container,file,folder} ...
  151. Move containers, files, or folders in Azure storage
  152. optional arguments:
  153. -h, --help show this help message and exit
  154. Available functionality:
  155. {container,file,folder}
  156. container Move a container in Azure storage
  157. file Move a file within Azure storage
  158. folder Move a folder within Azure storage
  159. </code></pre>
  160. <h3 id="azuremove-container">AzureMove container</h3>
  161. <p>Move a container within your Azure storage account</p>
  162. <h4 id="required-arguments">Required arguments:</h4>
  163. <ul>
  164. <li>container name</li>
  165. <li>account name</li>
  166. </ul>
  167. <h4 id="optional-arguments">Optional arguments:</h4>
  168. <ul>
  169. <li>target container: name of the container into which the container is to be moved</li>
  170. <li>path to store the container: nest the container within the target container</li>
  171. <li>passphrase used to store your connection string in the system keyring (default is AzureStorage)</li>
  172. <li>verbosity: set the logging level. Options are debug,info,warning,error,critical. Default is info</li>
  173. <li>storage tier: set the storage tier of the file in Azure storage. Options are Hot, Cool, Archive. Default is Hot</li>
  174. </ul>
  175. <h4 id="example-commands">Example commands:</h4>
  176. <p>These commands will use <code>container-name</code> as the name of the container, <code>target-container</code> as the name of the target container, and <code>account_name</code> as the name of the storage account</p>
  177. <p>To perform a basic move (this also renames a container):</p>
  178. <p><code>AzureMove container -a account_name -c container-name -t target-container</code></p>
  179. <p>To move a container, and set the storage tier to <code>Cool</code></p>
  180. <p><code>AzureMove container -a account_name -c container-name -t target-container -s Cool</code></p>
  181. <p>To move a container and nest it into folder <code>outputs</code>:</p>
  182. <p><code>AzureMove container -a account_name -c container-name -t target-container -r outputs</code></p>
  183. <h4 id="usage">Usage</h4>
  184. <pre><code>usage: AzureMove container [-h] -c CONTAINER_NAME -a ACCOUNT_NAME [-p PASSPHRASE] [-v VERBOSITY] -t TARGET_CONTAINER [-r RESET_PATH]
  185. [-s STORAGE_TIER]
  186. Move a container in Azure storage
  187. optional arguments:
  188. -h, --help show this help message and exit
  189. -c CONTAINER_NAME, --container_name CONTAINER_NAME
  190. Name of the Azure storage container. Note that container names must be lowercase, between 3 and 63 characters, start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted.
  191. -a ACCOUNT_NAME, --account_name ACCOUNT_NAME
  192. Name of the Azure storage account
  193. -p PASSPHRASE, --passphrase PASSPHRASE
  194. The passphrase to use when encrypting the azure storage-specific connection string to the system keyring. Default is &quot;AzureStorage&quot;.
  195. -v VERBOSITY, --verbosity VERBOSITY
  196. Set the logging level. Options are debug, info, warning, error, and critical. Default is info.
  197. -t TARGET_CONTAINER, --target_container TARGET_CONTAINER
  198. The target container to which the container/file/folder is to be moved (this can be the same as the container_name if you want to move a file/folder within a container
  199. -r RESET_PATH, --reset_path RESET_PATH
  200. Set the path of the container/file/folder within a folder in the target container e.g. sequence_data/220202-m05722. If you want to place it directly in the container without any nesting, use or ''
  201. -s STORAGE_TIER, --storage_tier STORAGE_TIER
  202. Set the storage tier for the container/file/folder to be moved. Options are &quot;Hot&quot;, &quot;Cool&quot;, and &quot;Archive&quot;. Default is Hot
  203. </code></pre>
  204. <h3 id="azuremove-file">AzureMove file</h3>
  205. <p>Move a file within your Azure storage account</p>
  206. <h4 id="required-arguments_1">Required arguments:</h4>
  207. <ul>
  208. <li>container name</li>
  209. <li>account name</li>
  210. <li>file name</li>
  211. </ul>
  212. <h4 id="optional-arguments_1">Optional arguments:</h4>
  213. <ul>
  214. <li>target container: name of the container into which the container is to be moved</li>
  215. <li>path to store the container: nest the container within the target container</li>
  216. <li>passphrase used to store your connection string in the system keyring (default is AzureStorage)</li>
  217. <li>verbosity: set the logging level. Options are debug,info,warning,error,critical. Default is info</li>
  218. <li>storage tier: set the storage tier of the file in Azure storage. Options are Hot, Cool, Archive. Default is Hot</li>
  219. </ul>
  220. <h4 id="example-commands_1">Example commands:</h4>
  221. <p>These commands will use <code>container-name</code> as the name of the container, <code>target-container</code> as the name of the target container, and <code>account_name</code> as the name of the storage account</p>
  222. <p>To move the file <code>file_name.gz</code></p>
  223. <p><code>AzureMove file -a account_name -c container-name -t target-container -f file_name.gz</code></p>
  224. <p>To move the file <code>file_name.gz</code>, and set the storage tier to <code>Cool</code></p>
  225. <p><code>AzureMove file -a account_name -c container-name -t target-container -f file_name.gz -s Cool</code></p>
  226. <p>To move the file <code>file_name.gz</code> nested in folder <code>outputs</code></p>
  227. <p><code>AzureMove file -a account_name -c container-name -t target-container -f outputs/file_name.gz</code></p>
  228. <p>To move the file <code>file_name.gz</code> nested in folder <code>outputs</code> to the root of the source container</p>
  229. <p><code>AzureMove file -a account_name -c container-name -t container-name -f outputs/file_name.gz -r ""</code></p>
  230. <p>To move the file <code>file_name.gz</code> nested in folder <code>outputs</code> to folder <code>results</code> in the source container</p>
  231. <p><code>AzureMove file -a account_name -c container-name -t container-name -f outputs/file_name.gz -r results</code></p>
  232. <p>To move the file <code>file_name.gz</code> nested in folder <code>outputs</code> to the root of the target container</p>
  233. <p><code>AzureMove file -a account_name -c container-name -t target-container -f outputs/file_name.gz -r ""</code></p>
  234. <p>To move the file <code>file_name.gz</code> nested in folder <code>outputs</code> to folder <code>results</code> in the target container</p>
  235. <p><code>AzureMove file -a account_name -c container-name -t target-container -f outputs/file_name.gz -r results</code></p>
  236. <h4 id="usage_1">Usage</h4>
  237. <pre><code>usage: AzureMove file [-h] -c CONTAINER_NAME -a ACCOUNT_NAME [-p PASSPHRASE] [-v VERBOSITY] -t TARGET_CONTAINER [-r RESET_PATH]
  238. [-s STORAGE_TIER] -f FILE
  239. Move a file within Azure storage
  240. optional arguments:
  241. -h, --help show this help message and exit
  242. -c CONTAINER_NAME, --container_name CONTAINER_NAME
  243. Name of the Azure storage container. Note that container names must be lowercase, between 3 and 63 characters, start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted.
  244. -a ACCOUNT_NAME, --account_name ACCOUNT_NAME
  245. Name of the Azure storage account
  246. -p PASSPHRASE, --passphrase PASSPHRASE
  247. The passphrase to use when encrypting the azure storage-specific connection string to the system keyring. Default is &quot;AzureStorage&quot;.
  248. -v VERBOSITY, --verbosity VERBOSITY
  249. Set the logging level. Options are debug, info, warning, error, and critical. Default is info.
  250. -t TARGET_CONTAINER, --target_container TARGET_CONTAINER
  251. The target container to which the container/file/folder is to be moved (this can be the same as the container_name if you want to move a file/folder within a container
  252. -r RESET_PATH, --reset_path RESET_PATH
  253. Set the path of the container/file/folder within a folder in the target container e.g. sequence_data/220202-m05722. If you want to place it directly in the container without any nesting, use or ''
  254. -s STORAGE_TIER, --storage_tier STORAGE_TIER
  255. Set the storage tier for the container/file/folder to be moved. Options are &quot;Hot&quot;, &quot;Cool&quot;, and &quot;Archive&quot;. Default is Hot
  256. -f FILE, --file FILE Name of blob file to move in Azure storage. e.g. 2022-SEQ-0001_S1_L001_R1_001.fastq.gz
  257. </code></pre>
  258. <h3 id="azuremove-folder">AzureMove folder</h3>
  259. <p>Move a folder within your Azure storage account</p>
  260. <h4 id="required-arguments_2">Required arguments:</h4>
  261. <ul>
  262. <li>container name</li>
  263. <li>account name</li>
  264. <li>folder name</li>
  265. </ul>
  266. <h4 id="optional-arguments_2">Optional arguments:</h4>
  267. <ul>
  268. <li>target container: name of the container into which the container is to be moved</li>
  269. <li>path to store the container: nest the container within the target container</li>
  270. <li>passphrase used to store your connection string in the system keyring (default is AzureStorage)</li>
  271. <li>verbosity: set the logging level. Options are debug,info,warning,error,critical. Default is info</li>
  272. <li>storage tier: set the storage tier of the file in Azure storage. Options are Hot, Cool, Archive. Default is Hot</li>
  273. </ul>
  274. <h4 id="example-commands_2">Example commands:</h4>
  275. <p>These commands will use <code>container-name</code> as the name of the container, <code>target-container</code> as the name of the target container, and <code>account_name</code> as the name of the storage account</p>
  276. <p>To move the folder <code>folder_name</code></p>
  277. <p><code>AzureMove folder -a account_name -c container-name -t target-container -f folder_name</code></p>
  278. <p>To move the folder <code>folder_name</code>, and set the storage tier to <code>Cool</code></p>
  279. <p><code>AzureMove folder -a account_name -c container-name -t target-container -f folder_name -s Cool</code></p>
  280. <p>To move the folder <code>folder_name</code> nested in folder <code>outputs</code></p>
  281. <p><code>AzureMove folder -a account_name -c container-name -t target-container -f outputs/folder_name</code></p>
  282. <p>To move the folder <code>folder_name</code> nested in folder <code>outputs</code> to the root of the source container</p>
  283. <p><code>AzureMove folder -a account_name -c container-name -t container-name -f outputs/folder_name -r ""</code></p>
  284. <p>To move the folder <code>folder_name</code> nested in folder <code>outputs</code> to folder <code>results</code> in the source container</p>
  285. <p><code>AzureMove folder -a account_name -c container-name -t container-name -f outputs/folder_name -r results</code></p>
  286. <p>To move the folder <code>folder_name</code> nested in folder <code>outputs</code> to the root of the target container</p>
  287. <p><code>AzureMove folder -a account_name -c container-name -t target-container -f outputs/folder_name -r ""</code></p>
  288. <p>To move the folder <code>folder_name</code> nested in folder <code>outputs</code> to folder <code>results</code> in the target container</p>
  289. <p><code>AzureMove folder -a account_name -c container-name -t target-container -f outputs/folder_name -r results</code></p>
  290. <h4 id="usage_2">Usage</h4>
  291. <pre><code>usage: AzureMove folder [-h] -c CONTAINER_NAME -a ACCOUNT_NAME [-p PASSPHRASE] [-v VERBOSITY] -t TARGET_CONTAINER [-r RESET_PATH]
  292. [-s STORAGE_TIER] -f FOLDER
  293. Move a folder within Azure storage
  294. optional arguments:
  295. -h, --help show this help message and exit
  296. -c CONTAINER_NAME, --container_name CONTAINER_NAME
  297. Name of the Azure storage container. Note that container names must be lowercase, between 3 and 63 characters, start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted.
  298. -a ACCOUNT_NAME, --account_name ACCOUNT_NAME
  299. Name of the Azure storage account
  300. -p PASSPHRASE, --passphrase PASSPHRASE
  301. The passphrase to use when encrypting the azure storage-specific connection string to the system keyring. Default is &quot;AzureStorage&quot;.
  302. -v VERBOSITY, --verbosity VERBOSITY
  303. Set the logging level. Options are debug, info, warning, error, and critical. Default is info.
  304. -t TARGET_CONTAINER, --target_container TARGET_CONTAINER
  305. The target container to which the container/file/folder is to be moved (this can be the same as the container_name if you want to move a file/folder within a container
  306. -r RESET_PATH, --reset_path RESET_PATH
  307. Set the path of the container/file/folder within a folder in the target container e.g. sequence_data/220202-m05722. If you want to place it directly in the container without any nesting, use or ''
  308. -s STORAGE_TIER, --storage_tier STORAGE_TIER
  309. Set the storage tier for the container/file/folder to be moved. Options are &quot;Hot&quot;, &quot;Cool&quot;, and &quot;Archive&quot;. Default is Hot
  310. -f FOLDER, --folder FOLDER
  311. Name of folder to move in Azure storage. e.g. InterOp
  312. </code></pre>
  313. </div>
  314. </div>
  315. <footer>
  316. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  317. <a href="../download/" class="btn btn-neutral float-right" title="Download">Next <span class="icon icon-circle-arrow-right"></span></a>
  318. <a href="../sas_url/" class="btn btn-neutral" title="SAS URL"><span class="icon icon-circle-arrow-left"></span> Previous</a>
  319. </div>
  320. <hr/>
  321. <div role="contentinfo">
  322. <!-- Copyright etc -->
  323. </div>
  324. Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  325. </footer>
  326. </div>
  327. </div>
  328. </section>
  329. </div>
  330. <div class="rst-versions" role="note" aria-label="versions">
  331. <span class="rst-current-version" data-toggle="rst-current-version">
  332. <a href="https://github.com/OLC-LOC-Bioinformatics/AzureStorage/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
  333. <span><a href="../sas_url/" style="color: #fcfcfc;">&laquo; Previous</a></span>
  334. <span style="margin-left: 15px"><a href="../download/" style="color: #fcfcfc">Next &raquo;</a></span>
  335. </span>
  336. </div>
  337. <script>var base_url = '..';</script>
  338. <script src="../js/theme.js" defer></script>
  339. <script src="../search/main.js" defer></script>
  340. <script defer>
  341. window.onload = function () {
  342. SphinxRtdTheme.Navigation.enable(true);
  343. };
  344. </script>
  345. </body>
  346. </html>