{"id":2200,"date":"2011-03-05T14:50:57","date_gmt":"2011-03-05T13:50:57","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=2200"},"modified":"2011-03-05T14:50:57","modified_gmt":"2011-03-05T13:50:57","slug":"export-of-policies","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=2200","title":{"rendered":"Export of Policies"},"content":{"rendered":"<p>There are many scenarios where you need to export and import Opalis policies, for example between your Opalis development environment and your Opalis production environment. There are actually two places in Opalis Integration Server where you can do a export, first on a policy tab and then on a folder. In this blog post we will look at these two.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export01.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2201 aligncenter\" title=\"Opalis_Export01\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export01-217x300.jpg\" alt=\"\" width=\"217\" height=\"300\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export01-217x300.jpg 217w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export01.jpg 234w\" sizes=\"(max-width: 217px) 100vw, 217px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export02.jpg\"><\/a><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2202 aligncenter\" title=\"Opalis_Export02\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export02-300x238.jpg\" alt=\"\" width=\"300\" height=\"238\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export02-300x238.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export02.jpg 325w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>If you select Export on a folder you will get the Export dialog box. The Export dialog box allows you to<\/p>\n<ul>\n<li>Specify file location, where to store the export file<\/li>\n<li>configure if you want to export sub folders too<\/li>\n<li>configure if you want to export global settings (for example counters, variables and computer groups)<\/li>\n<li>configure if you want to export global configuration (options &gt; configuration in the Opalis Integration Server client)<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export03.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2205 aligncenter\" title=\"Opalis_Export03\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export03-300x200.jpg\" alt=\"\" width=\"300\" height=\"200\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export03-300x200.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export03.jpg 604w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export01.jpg\"><\/a><\/p>\n<p>If\u00c2\u00a0you export a folder, including a sub-folder, total of two policies, with all default settings in the export dialog box,\u00c2\u00a0you get a complete export including the folder structure, global settings, connection settings and policies from the folder and sub folder. As you can see in the picture, the export also\u00c2\u00a0includes Global settings that the two policies don&#8217;t use. If you already have the global settings you can choose if you want to override them or keep them as they are.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export04.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-2208 aligncenter\" title=\"Opalis_Export04\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export04-281x300.jpg\" alt=\"\" width=\"281\" height=\"300\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export04-281x300.jpg 281w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/03\/Opalis_Export04.jpg 358w\" sizes=\"(max-width: 281px) 100vw, 281px\" \/><\/a><\/p>\n<p>If you do export on a policy tab you will not get the same result as if you right-click a folder and do export. This will only give you the policy that you did the export on and global settings it use. But you will still get the global settings\u00c2\u00a0folder structure of the source environment. In the picture above I will get the 1., 1.1, 1.2 and\u00c2\u00a02\u00c2\u00a0\u00c2\u00a0folders under Variables, but as I exported policy 1.2 there will be noting in the folders except for the 1.2 folder.<\/p>\n<p>If for example folder 2. already exists under Variables you get a question asking you if you want to overwrite it or create a new. If you select create new, you will get a new folder named &#8220;2. (1)&#8221;. If you select override it will merge the folder with the variables to import and the ones in the folder already. You can step through all items and select overwrite or not, for example if you only want to overwrite a couple variables. If you create a new folder during import the policy will be update to use the new variable, even if there already exist one with the same name.<\/p>\n<p>In both export scenario the export file contains data that you not necessary need or want to import into the target environment. To avoid overwrite a policy, connection configuration\u00c2\u00a0or setting by mistake you can clean up the export file between export and import. There are a couple of tools from Microsoft partners that can do this, but you can also use a extra Opalis installation. It can be a single server running Opalis where you import the export file, modify it and export to a new file. You then use the new export file to import into the target Opalis environment. In my sandbox that machine is named mrWolf, from the efficient clean-up expert &#8220;the\u00c2\u00a0Wolf&#8221; in Pulp Fiction.\u00c2\u00a0 \ud83d\ude42 This Opalis environment is keept total empty by default, it is then\u00c2\u00a0very easy to see what data\u00c2\u00a0was imported when I run a import. When the clean-up is done, it is easy to see what will be exported, as everything in there will be included.<\/p>\n<p>Please note that this is provided \u00e2\u20ac\u0153as is\u00e2\u20ac\u009d with no warranties at all.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many scenarios where you need to export and import Opalis policies, for example between your Opalis development environment and your Opalis production environment. There are actually two places in Opalis Integration Server where you can do a export, first on a policy tab and then on a folder. In this blog post we &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=2200\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[58],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2200"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2200"}],"version-history":[{"count":20,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2224,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2200\/revisions\/2224"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}