{"id":1056,"date":"2017-06-22T20:05:54","date_gmt":"2017-06-22T14:35:54","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=1056"},"modified":"2017-06-22T20:05:54","modified_gmt":"2017-06-22T14:35:54","slug":"iib-mqsirestorebroker-command","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2017\/06\/22\/iib-mqsirestorebroker-command\/","title":{"rendered":"IIB mqsirestorebroker command"},"content":{"rendered":"<p>IIB mqsirestorebroker command details below for reference.<\/p>\n<p>mqsirestorebroker command to restore the broker configuration from a backup file.<\/p>\n<p>As mentioned in IBM Integration Bus v9 <span style=\"text-decoration: underline;\"><strong>Knowledge Center<\/strong><\/span>,<\/p>\n<p>The mqsirestorebroker command restores the broker configuration from a backup file that you have created by using the mqsibackupbroker command. You can restore a broker only on a computer that has an identical configuration; the operating system must be at the same level, and the broker and queue manager names must be identical.<br \/>\nUsage notes<\/p>\n<p>The command restores the following persistent configuration data associated with the broker that is contained in the backup file:<\/p>\n<p>Deployed resources; message flows, dictionaries, JAR files, and other runtime resources that you have previously deployed in a BAR file.<br \/>\nIntegration servers.<br \/>\nBroker configuration; for example, configurable services.<\/p>\n<p>Always stop the broker before you run this command. If you specify -c to restore common configuration data that is shared with other brokers, you must also stop all brokers with which this broker shares that data. If you run this command when a relevant broker is active, the results are unpredictable.<\/p>\n<p>If the mqsibackupbroker command that created the backup file includes information about files that were locked when the backup was taken, and therefore cannot be backed up, the mqsirestorebroker command returns the names of the files affected.<\/p>\n<p>&nbsp;<\/p>\n<p>Command parameters,<\/p>\n<p><strong>mqsirestorebroker &lt;parameters&gt;<\/strong><\/p>\n<p>Where parameters are,<\/p>\n<p><strong>brokerName<\/strong><br \/>\n(Required) The name of the broker that you want to restore. You must specify the name as the first parameter. If the name that you specify does not match the name of the broker associated with the backup file, the command fails.<br \/>\n<strong>-d<\/strong> directory<br \/>\n(Required) The directory in which the backup file is stored. The file must be stored in a file system that can be accessed by the computer on which you run this command.<br \/>\n<strong>-a<\/strong> archiveName<br \/>\n(Required) The name of the backup (archive) file.<br \/>\n<strong>-c<\/strong><br \/>\n(Optional) Specify this parameter to restore all configuration data that is shared with other brokers on the same computer; for example, profiles.<br \/>\n<strong>-v<\/strong> traceFileName<br \/>\n(Optional) The location of a trace file that records details of the actions taken by the command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1058\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker1.png\" alt=\"\" width=\"1201\" height=\"199\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker1.png 1201w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker1-300x50.png 300w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker1-768x127.png 768w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker1-1024x170.png 1024w\" sizes=\"auto, (max-width: 1201px) 100vw, 1201px\" \/><\/p>\n<p>Command Usage,<\/p>\n<p>I have already taken backup as mentioned in <a href=\"http:\/\/www.middlewareprimer.com\/blog\/2017\/06\/22\/iib-mqsibackupbroker-command\/\" target=\"_blank\" rel=\"noopener\"><span style=\"text-decoration: underline;\"><strong>earlier post<\/strong><\/span><\/a>, so the zip file exists to restore the broker.<\/p>\n<p>On Windows,<\/p>\n<p>mqsirestorebroker broker1 -d C:\\brokerbackup -a broker1bkp_21072017.zip<\/p>\n<p>On Linux,<\/p>\n<p>mqsirestorebroker broker1 -d \/tmp\/brokerbackup -a broker1bkp_21072017.zip<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1059\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker2.png\" alt=\"\" width=\"950\" height=\"76\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker2.png 950w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker2-300x24.png 300w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2017\/06\/iibrestorebroker2-768x61.png 768w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/p>\n<p>There is no difference between IIB Integration Bus v9 and v10 for mqsiretorebroker command execution. IIB v10 Knowledge center link for reference <a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/en\/SSMKHH_10.0.0\/com.ibm.etools.mft.doc\/bn43010_.htm\" target=\"_blank\" rel=\"noopener\"><span style=\"text-decoration: underline;\"><strong>here<\/strong><\/span><\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IIB mqsirestorebroker command details below for reference. mqsirestorebroker command to restore the broker configuration from a backup file. As mentioned in IBM Integration Bus v9 Knowledge Center, The mqsirestorebroker command restores the broker configuration from a backup file that you have created by using the mqsibackupbroker command. You can restore a broker only on a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[57,58,41,221,146,316,317],"class_list":["post-1056","post","type-post","status-publish","format-standard","hentry","category-ibm-integration-bus","tag-ibm-integration-bus","tag-ibm-integration-bus-9-0","tag-ibm-integration-bus-v10-0","tag-iib-v10","tag-iib-v9","tag-mqsibackupbroker","tag-mqsirestorebroker"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=1056"}],"version-history":[{"count":3,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1056\/revisions"}],"predecessor-version":[{"id":1061,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1056\/revisions\/1061"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=1056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=1056"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=1056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}