{"id":1437,"date":"2024-07-10T01:51:15","date_gmt":"2024-07-10T01:51:15","guid":{"rendered":"https:\/\/craftcookcode.com\/?p=1437"},"modified":"2025-10-16T23:16:28","modified_gmt":"2025-10-16T23:16:28","slug":"qlik-replicate-quickly-backing-up-the-data-directory-2","status":"publish","type":"post","link":"https:\/\/craftcookcode.com\/?p=1437","title":{"rendered":"Qlik Replicate \u2013 Quickly backing up the Data directory"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Just a short post on a trick I learnt when upgrading a whole lot of QR boxes on Windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As part of the upgrade process; you need to back up the data directory encase you need to back out the&nbsp; upgrade.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Data directory by default is located in:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>C:\\Program Files\\Attunity\\Replicate\\data\\<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Using the inbuilt Windows compression tool (to me) seems slow and sometime unreliable; especially if there is a large amount of data staged when QR was turned off to do the upgrade.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then I remember that 7zip can be used from the command line.&nbsp; Also an added feature is that 7zip can exclude certain directories so the often large \u201clog\u201d directory can be excluded.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n7z a -r -t7z &quot;C:\\Program Files\\Attunity\\Replicate\\data.7z&quot; &quot;C:\\Program Files\\Attunity\\Replicate\\data\\*.*&quot; -xr!logs\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">This command can also be used in automating the QR upgrade.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Update &#8211; Excluding the minidumps directory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Underneath the data directory is a folder called minidumps.  It contains dumps when a QR task crashes and used for diagnostics.  Some of these files can be quite large.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a backup &#8211; the folder can be ignored; making the archive process run quicker.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n7z a -r -t7z &quot;C:\\Program Files\\Attunity\\Replicate\\data.7z&quot; &quot;C:\\Program Files\\Attunity\\Replicate\\data\\*.*&quot; -xr!logs -xr!minidumps\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Just a short post on a trick I learnt when upgrading a whole lot of QR boxes on Windows. As part of the upgrade process; you&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qlik-replicate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1437"}],"version-history":[{"count":2,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1687,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions\/1687"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/media\/1076"}],"wp:attachment":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}