<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is the syntax on repctl command line to exportrepository task=&amp;lt;tsk_name&amp;gt; without endpoints in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/What-is-the-syntax-on-repctl-command-line-to-exportrepository/m-p/2467733#M11808</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;What is the syntax on repctl command line to exportrepository task=&amp;lt;tsk_name&amp;gt; without endpoints?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I don't think that exists for REPCTL. See full HELP output for exportrepository below.&lt;/P&gt;
&lt;P&gt;it is a simple matter of programming though if you are scripting anyway.&amp;nbsp; Years ago I made 'superscripts' for JSON manipulation in PERL and Powershell. They can delete 'sections' from the json file on request.&lt;/P&gt;
&lt;P&gt;Here is a PERL variant, just to delete the 'databases' section from a JSON exports. Note: the textual formatting will be too different to be able to readily compare old and new, but it imports fine and you could re-export to get the Replicate formatting style to check against old. I just made this, and only tested against 1 task. Your mileage may vary.&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;my $usage = qq(Usage:\n\tperl &amp;lt; old.json &amp;gt; new.json\n);
use strict;
use warnings;
use JSON qw( to_json from_json );
                                  
my ($verbose, $json_text, $decoded_json) = (1, '');
for (&amp;lt;STDIN&amp;gt;) {
	next if /^\s*\/\//; # Ignore comment line(s) - typically just the first line.
	$json_text .= $_;
} 
print STDERR "$. input lines, ",length($json_text)," bytes in input file\n"  if $verbose;
die "input file does not look reasonable. Only $. input lines" if $. &amp;lt; 10;

$decoded_json = from_json( $json_text );

if (defined($decoded_json-&amp;gt;{'cmd.replication_definition'}-&amp;gt;{databases})) {
	delete($decoded_json-&amp;gt;{'cmd.replication_definition'}-&amp;gt;{databases});
} else {
	printf "Section &amp;lt;databases&amp;gt; does not exist in this input json\n";
}

$json_text = to_json ( $decoded_json, { pretty =&amp;gt; 1 } );
print STDOUT $json_text;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;command exportrepository:
    request arguments:

    task:optional string
    include_server_settings:optional BOOL
    only_external_table_defs:optional BOOL
    folder_name:optional string
    unique_name:optional BOOL
    endpoint:optional string
    calculate_db_qri:optional BOOL

    response arguments:
    message:optional string
    file_path:optional string
[exportrepository command] Succeeded&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 16:33:09 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2024-07-03T16:33:09Z</dc:date>
    <item>
      <title>What is the syntax on repctl command line to exportrepository task=&lt;tsk_name&gt; without endpoints</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/What-is-the-syntax-on-repctl-command-line-to-exportrepository/m-p/2467712#M11807</link>
      <description>&lt;P&gt;hello Support,&lt;BR /&gt;What is the syntax on repctl command line to exportrepository task=&amp;lt;tsk_name&amp;gt; without endpoints?&lt;BR /&gt;I know there is an easy option for exporting with or without endpoints in QEM (Enterprise manager), but I need command line command, because I need to set this up in .bat script.&amp;nbsp;&lt;BR /&gt;Kindly assist&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/What-is-the-syntax-on-repctl-command-line-to-exportrepository/m-p/2467712#M11807</guid>
      <dc:creator>selvakumars</dc:creator>
      <dc:date>2024-07-03T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: What is the syntax on repctl command line to exportrepository task=&lt;tsk_name&gt; without endpoints</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/What-is-the-syntax-on-repctl-command-line-to-exportrepository/m-p/2467733#M11808</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;What is the syntax on repctl command line to exportrepository task=&amp;lt;tsk_name&amp;gt; without endpoints?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I don't think that exists for REPCTL. See full HELP output for exportrepository below.&lt;/P&gt;
&lt;P&gt;it is a simple matter of programming though if you are scripting anyway.&amp;nbsp; Years ago I made 'superscripts' for JSON manipulation in PERL and Powershell. They can delete 'sections' from the json file on request.&lt;/P&gt;
&lt;P&gt;Here is a PERL variant, just to delete the 'databases' section from a JSON exports. Note: the textual formatting will be too different to be able to readily compare old and new, but it imports fine and you could re-export to get the Replicate formatting style to check against old. I just made this, and only tested against 1 task. Your mileage may vary.&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;my $usage = qq(Usage:\n\tperl &amp;lt; old.json &amp;gt; new.json\n);
use strict;
use warnings;
use JSON qw( to_json from_json );
                                  
my ($verbose, $json_text, $decoded_json) = (1, '');
for (&amp;lt;STDIN&amp;gt;) {
	next if /^\s*\/\//; # Ignore comment line(s) - typically just the first line.
	$json_text .= $_;
} 
print STDERR "$. input lines, ",length($json_text)," bytes in input file\n"  if $verbose;
die "input file does not look reasonable. Only $. input lines" if $. &amp;lt; 10;

$decoded_json = from_json( $json_text );

if (defined($decoded_json-&amp;gt;{'cmd.replication_definition'}-&amp;gt;{databases})) {
	delete($decoded_json-&amp;gt;{'cmd.replication_definition'}-&amp;gt;{databases});
} else {
	printf "Section &amp;lt;databases&amp;gt; does not exist in this input json\n";
}

$json_text = to_json ( $decoded_json, { pretty =&amp;gt; 1 } );
print STDOUT $json_text;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;command exportrepository:
    request arguments:

    task:optional string
    include_server_settings:optional BOOL
    only_external_table_defs:optional BOOL
    folder_name:optional string
    unique_name:optional BOOL
    endpoint:optional string
    calculate_db_qri:optional BOOL

    response arguments:
    message:optional string
    file_path:optional string
[exportrepository command] Succeeded&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 16:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/What-is-the-syntax-on-repctl-command-line-to-exportrepository/m-p/2467733#M11808</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-07-03T16:33:09Z</dc:date>
    </item>
  </channel>
</rss>

