|
| 1 | +.. _mcli-om-admin-backup-filesystem-update-cmd: |
| 2 | + |
| 3 | +=================================================== |
| 4 | +mongocli ops-manager admin backup filesystem update |
| 5 | +=================================================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +.. include:: /includes/admonitions/admin-requires-global-owner.rst |
| 16 | + |
| 17 | +The ``admin backup filesystem update`` command updates one |
| 18 | +backup file system store configuration. You can also update the |
| 19 | +configuration using the :opsmgr:`UI |
| 20 | +</tutorial/manage-filestore-storage/#edit-an-existing-file-system-store>` |
| 21 | +and the :opsmgr:`API |
| 22 | +</reference/api/admin/backup/snapshot/fileSystemConfigs/update-one-file-system-store-configuration/>`. |
| 23 | + |
| 24 | +.. _mcli-om-admin-backup-filesystem-update-syntax: |
| 25 | + |
| 26 | +Syntax |
| 27 | +------ |
| 28 | + |
| 29 | +.. code-block:: shell |
| 30 | + |
| 31 | + mongocli ops-manager|om admin backup filesystem|fileSystem update <file-system-ID> |
| 32 | + [ --assignment ] |
| 33 | + [ --encryptedCredentials ] |
| 34 | + [ --label <tags> ] |
| 35 | + [ --loadFactor <number-of-backup-jobs> ] |
| 36 | + [ --mmapv1CompressionSetting <NONE|GZIP> ] |
| 37 | + [ --output|-o <output-format> ] |
| 38 | + [ --profile|-P <profile-name> ] |
| 39 | + --storePath <path-to-backups> |
| 40 | + [ --wtCompressionSetting <NONE|GZIP> ] |
| 41 | + |
| 42 | +.. include:: /includes/fact-command-line-help.rst |
| 43 | + |
| 44 | +.. _mcli-om-admin-backup-filesystem-update-args: |
| 45 | + |
| 46 | +Arguments |
| 47 | +--------- |
| 48 | + |
| 49 | +.. list-table:: |
| 50 | + :widths: 20 10 60 10 |
| 51 | + :header-rows: 1 |
| 52 | + |
| 53 | + * - Option |
| 54 | + - Type |
| 55 | + - Description |
| 56 | + - Required? |
| 57 | + |
| 58 | + * - ``<file-system-ID>`` |
| 59 | + - string |
| 60 | + - Unique name for this file system store configuration. |
| 61 | + - yes |
| 62 | + |
| 63 | +.. _mcli-om-admin-backup-filesystem-update-options: |
| 64 | + |
| 65 | +Options |
| 66 | +------- |
| 67 | + |
| 68 | +.. list-table:: |
| 69 | + :widths: 20 10 60 10 |
| 70 | + :header-rows: 1 |
| 71 | + |
| 72 | + * - Option |
| 73 | + - Type |
| 74 | + - Description |
| 75 | + - Required? |
| 76 | + |
| 77 | + * - ``--assignment`` |
| 78 | + - |
| 79 | + - Flag that indicates whether this :opsmgr:`file system store |
| 80 | + </reference/glossary/#term-file-system-store>` can be assigned backup |
| 81 | + jobs. |
| 82 | + - no |
| 83 | + |
| 84 | + * - ``--encryptedCredentials`` |
| 85 | + - |
| 86 | + - Flag that indicates whether the username and password for this |
| 87 | + file system store were encrypted using the |
| 88 | + :opsmgr:`credentialstool </tutorial/encrypt-user-credentials/>`. |
| 89 | + - no |
| 90 | + |
| 91 | + * - ``--label`` |
| 92 | + - array of strings |
| 93 | + - Array of tags that specify which :opsmgr:`backup jobs |
| 94 | + </reference/glossary/#term-backup-job>` |onprem| can assign |
| 95 | + to which :opsmgr:`file system store |
| 96 | + </reference/glossary/#term-file system-store>`. If omitted, this |
| 97 | + file system store can only process the backup jobs for projects |
| 98 | + that do not use labels to filter their jobs. |
| 99 | + - no |
| 100 | + |
| 101 | + * - ``--loadFactor`` |
| 102 | + - number |
| 103 | + - Required if more than one snapshot store is in use. |
| 104 | + |
| 105 | + Number of backup work this :opsmgr:`snapshot store |
| 106 | + </reference/glossary/#term-snapshot-store>` should perform |
| 107 | + compared to another snapshot store. Value must be a positive, |
| 108 | + non-zero integer. |
| 109 | + - no |
| 110 | + |
| 111 | + * - ``--mmapv1CompressionSetting`` |
| 112 | + - string |
| 113 | + - Compression setting if you use the MMAPv1 storage engine for your |
| 114 | + snapshots. |onprem| accepts ``NONE`` or ``GZIP``. |
| 115 | + |
| 116 | + If your snapshots don't use the MMAPv1 storage engine, this value |
| 117 | + must be ``NONE``. |
| 118 | + |
| 119 | + - yes |
| 120 | + |
| 121 | + * - ``--output``, ``-o`` |
| 122 | + - string |
| 123 | + - .. include:: /includes/extracts/fact-basic-options-output.rst |
| 124 | + - no |
| 125 | + |
| 126 | + * - ``--profile``, ``-P`` |
| 127 | + - string |
| 128 | + - Name of the profile where the public and private |
| 129 | + keys for the project are saved. If omitted, uses the |
| 130 | + {+default-profile+}. To learn more about creating a |
| 131 | + profile, see :ref:`mcli-configure`. |
| 132 | + - no |
| 133 | + |
| 134 | + * - ``--storePath`` |
| 135 | + - string |
| 136 | + - Location where file system-based backups are stored on the file |
| 137 | + system store host. |
| 138 | + - yes |
| 139 | + |
| 140 | + * - ``--wtCompressionSetting`` |
| 141 | + - string |
| 142 | + - Compression setting if you use the WiredTiger storage engine for |
| 143 | + your snapshots. |onprem| accepts ``NONE`` or ``GZIP``. |
| 144 | + |
| 145 | + If your snapshots don't use the WiredTiger storage engine, this |
| 146 | + value must be ``NONE``. |
| 147 | + - yes |
| 148 | + |
| 149 | +.. _mcli-om-admin-backup-filesystem-update-output: |
| 150 | + |
| 151 | +Output |
| 152 | +------ |
| 153 | + |
| 154 | +If the command succeeds, it returns the following message in the default |
| 155 | +format. If the command returns errors, see |
| 156 | +:ref:`Troubleshooting <mcli-troubleshooting>` for recommended solutions. |
| 157 | + |
| 158 | +.. code-block:: sh |
| 159 | + :copyable: false |
| 160 | + |
| 161 | + File System configuration '<file-system-ID>' updated. |
| 162 | + |
| 163 | +If you request output in |json| format, the command returns the fields |
| 164 | +described in the :opsmgr:`API reference |
| 165 | +<reference/api/admin/backup/snapshot/fileSystemConfigs/update-one-file-system-store-configuration/#response>`. |
| 166 | + |
| 167 | +.. _mcli-om-admin-backup-filesystem-update-egs: |
| 168 | + |
| 169 | +Examples |
| 170 | +-------- |
| 171 | + |
| 172 | +The following ``mongocli om admin backup filesystem update`` command |
| 173 | +updates the ``test`` file system store using the {+default-profile+}, |
| 174 | +which contains the credentials for accessing |onprem|. |
| 175 | + |
| 176 | +.. tabs:: |
| 177 | + |
| 178 | + .. tab:: Default Output |
| 179 | + :tabid: default |
| 180 | + |
| 181 | + .. code-block:: shell |
| 182 | + |
| 183 | + mongocli om admin backup filesystem update test --assignment --storePath /data/backup --mmapv1CompressionSetting NONE --wtCompressionSetting GZIP |
| 184 | + |
| 185 | + The previous command returns the following: |
| 186 | + |
| 187 | + .. code-block:: shell |
| 188 | + :copyable: false |
| 189 | + |
| 190 | + File System configuration 'test' updated. |
| 191 | + |
| 192 | + .. tab:: JSON Output |
| 193 | + :tabid: json |
| 194 | + |
| 195 | + .. code-block:: shell |
| 196 | + |
| 197 | + mongocli om admin backup filesystem update test --assignment --storePath /data/backup --mmapv1CompressionSetting NONE --wtCompressionSetting GZIP --output json |
| 198 | + |
| 199 | + The previous command returns the following: |
| 200 | + |
| 201 | + .. code-block:: shell |
| 202 | + :copyable: false |
| 203 | + |
| 204 | + { |
| 205 | + "id" : "test", |
| 206 | + "assignmentEnabled" : true, |
| 207 | + "loadFactor" : 1, |
| 208 | + "mmapv1CompressionSetting" : "NONE", |
| 209 | + "storePath" : "/data/backup", |
| 210 | + "wtCompressionSetting" : "GZIP" |
| 211 | + } |
0 commit comments