{"id":7544,"date":"2013-09-16T09:31:00","date_gmt":"2013-09-16T07:31:00","guid":{"rendered":"http:\/\/nolabnoparty.com\/?p=7544"},"modified":"2014-11-24T16:10:34","modified_gmt":"2014-11-24T15:10:34","slug":"ensure-consistent-backups-lotus-domino","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/ensure-consistent-backups-lotus-domino\/","title":{"rendered":"Ensure consistent backups in Lotus Domino"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 10px auto 5px; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border: 0px;\" title=\"backupdomino01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/09\/backupdomino01.jpg\" alt=\"backupdomino01\" width=\"602\" height=\"202\" border=\"0\" \/><\/p>\n<p>To ensure consistent backups in <em>Lotus Domino<\/em>, the backup must be performed keeping in mind that <strong>Lotus Domino is not a VSS-aware<\/strong> application.<\/p>\n<p>Most backup software rely on VSS technique to capture snapshots but unfortunately <em>Lotus Domino<\/em> does not provide a <span style=\"color: #000000; font-family: Arial;\"><strong>mechanism to capture consistent snapshots<\/strong> of databases while on line.<\/span><\/p>\n<p><!--more--><\/p>\n<p>When the software tries to perform the <em>Lotus Domino<\/em> backup job, you finish the <strong>job with warning<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"backupdomino02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/09\/backupdomino02.jpg\" alt=\"backupdomino02\" width=\"600\" height=\"198\" border=\"0\" \/><\/p>\n<p>This result doesn\u2019t guarantee you are able to\u00a0<strong>properly\u00a0<\/strong><strong>restore the nfs databases<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h2>Procedure<\/h2>\n<p>To perform a correct backup you need to <strong>stop and start Lotus Domino accordingly<\/strong>. To achieve that you need to create two scripts VMware Tools will use <strong>during quescing<\/strong>.<\/p>\n<ul>\n<li>pre-freeze-script.bat<\/li>\n<li>post-thaw-script.bat<\/li>\n<\/ul>\n<p>Of course VMware Tools <strong>must be installed<\/strong> in the guest OS for this feature to work correctly.<\/p>\n<p><strong><span style=\"color: #000080;\">pre-freeze-script.bat<\/span><\/strong><\/p>\n<pre class=\"lang:default decode:true \">@echo off\r\nNet Time \\\\%computername% &gt;&gt; C:\\scripts\\logs\\freeze.log\r\nrem *********************\r\nrem Stops Domino daemon\r\nrem *********************\r\nnet stop \"Lotus Domino Server (DIBMLotusDominodata)\"<\/pre>\n<p><strong><span style=\"color: #000080;\">post-thaw-script.bat<\/span><\/strong><\/p>\n<pre class=\"lang:default decode:true \">@echo off\r\nrem *********************\r\nrem Start Domino daemon\r\nrem *********************\r\nnet start \"Lotus Domino Server (DIBMLotusDominodata)\"<\/pre>\n<p>&nbsp;<\/p>\n<h4>Windows OS<\/h4>\n<p>Looking at the table identify the default <strong>directory location<\/strong> for custom scripts used by your ESXi version under <strong>Windows environment<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"backupdomino03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/09\/backupdomino03.jpg\" alt=\"backupdomino03\" width=\"600\" height=\"183\" border=\"0\" \/><\/p>\n<p>With ESXi 5.0\/5.1 versions, the default directory is located in:<\/p>\n<blockquote><p>C:\\&gt;Windows<\/p><\/blockquote>\n<p>Then <strong>copy the two files<\/strong> under C:\\&gt;Windows folder.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"backupdomino04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/09\/backupdomino04.jpg\" alt=\"backupdomino04\" width=\"600\" height=\"189\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Linux OS<\/h4>\n<p>If the OS is Linux, the two scripts must be saved in <em>\/usr\/sbin<\/em> directory giving the <strong>correct executable permissions<\/strong>.<\/p>\n<blockquote><p>\/usr\/sbin\/pre-freeze-script.sh<br \/>\n\/usr\/sbin\/post-thaw-script.sh<\/p><\/blockquote>\n<p><span style=\"color: #000080;\"># chmod 755\u00a0\/usr\/sbin\/pre-freeze-script.sh<\/span><br \/>\n<span style=\"color: #000080;\"># chmod 755\u00a0\/usr\/sbin\/post-thaw-script.sh<\/span><\/p>\n<p>Running the backup, the two scripts stop and start <em>Lotus Domino<\/em> allowing to capture consistent snapshot to process the backup correctly. At the end of the procedure, the error disappear and the <strong>backup job completed<\/strong> successfully.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"backupdomino05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/09\/backupdomino05.jpg\" alt=\"backupdomino05\" width=\"600\" height=\"198\" border=\"0\" \/><\/p>\n<p>The main disadvantage of this solution is the<strong> temporary service interruption<\/strong>\u00a0for the period of time\u00a0necessary to capture the snapshot but because backups are normally performed during off-working hours a\u00a0momentarily offline can be accepted.<\/p>\n<p>After more than ten years since VSS appearance, sounds strange that some applications are still <strong>not VSS-aware<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" alt=\"firma\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To ensure consistent backups in Lotus Domino, the backup must be performed keeping in mind that Lotus Domino is not a VSS-aware application. Most backup software rely on VSS technique to capture snapshots but unfortunately Lotus Domino does not provide a mechanism to capture consistent snapshots of databases while on line.<\/p>\n","protected":false},"author":3,"featured_media":7539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"linkedin_93tdZWzMZc_93tdZWzMZc":"","facebook_2879994398731222_17841400390232720":"","twitter_113568041_113568041":"","mastodon_115463926174894442_115463926174894442":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[539,534],"tags":[579,697,695,600,601],"class_list":["post-7544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lotus-domino-en","category-messaging-en","tag-backup-en","tag-consistent","tag-database-en","tag-domino-en","tag-lotus-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/7544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=7544"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/7544\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/7539"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=7544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=7544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=7544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}