<?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: Backup &amp; Restore in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211704#M9624</link>
    <description>&lt;P&gt;The easiest way to achieve this is to use the database's built in backup and restore functionality called via Talend. If this is command line based you can use a tSystem component, if it can be run from within the DB environment you can use tDBRow to call whatever statements you need. This can indeed be done with a tLoop and context variables.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 20:34:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-25T20:34:51Z</dc:date>
    <item>
      <title>Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211701#M9621</link>
      <description>Hi All,
&lt;BR /&gt;
&lt;BR /&gt;I have a requirement where I need to backup certain tables daily and store them in files. How many tables need to backup will change like today I may backup 10 tables tomorrow can be 15
&lt;BR /&gt;Is it possible, if so how can I achieve it?
&lt;BR /&gt;
&lt;BR /&gt;The same files will be used for restore , while restoring I many need to restore one table or more than one table or all the tables
&lt;BR /&gt;
&lt;BR /&gt;Basically I want backup &amp;amp; restore should be happen without changing the job code , these 2 are separate jobs
&lt;BR /&gt;
&lt;BR /&gt;Any suggestions would be very great full
&lt;BR /&gt;
&lt;BR /&gt;Thanks in advance,
&lt;BR /&gt;Lmit
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Feb 2020 18:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211701#M9621</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2020-02-22T18:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211702#M9622</link>
      <description>&lt;P&gt;How would you do this in code? If you think about what you are asking it is an incredibly difficult&amp;nbsp; problem to solve, even for someone writing bespoke code by hand. The problems you have are....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) How do you identify the tables to be backed up and restored?&amp;nbsp; - Possibly there is a simple answer to this like a list of tables in a file or database, or maybe searching the database for tables that have been modified. This would need to be considered in your solution.&lt;/P&gt; 
&lt;P&gt;2) Are you doing a dump of the entire tables or incremental backups? - If you are intending to dump the whole table, that would be easier. If you want incremental changes, that makes it a lot more complicated.&lt;/P&gt; 
&lt;P&gt;3) How will you identify the datatypes? - You are dumping to a flat file which makes everything essentially a String. When you want to restore this, you will have to convert from a String to the correct data type. You cannot easily do this dynamically and it would require some bespoke code.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want to do this in Talend, you cannot expect to be able to create an export and an import job unless you are intending to use built-in backup and restore functionality of the database you are using. THIS is very possible. However if you want to bypass the built-in backup and restore functionality of your database, you won't be able to do it with 2 jobs very easily at all. It would be easier to create a job per table and dynamically call the relevant jobs depending on what you want to backup and restore.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211702#M9622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T12:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211703#M9623</link>
      <description>Hi rhall ,
&lt;BR /&gt;Thanks for your reply
&lt;BR /&gt;
&lt;BR /&gt;I will keep the table names in a file which I want to backup and restore(both separate files)
&lt;BR /&gt;
&lt;BR /&gt;I need complete data not incremental data.
&lt;BR /&gt;
&lt;BR /&gt;If I create one job for one table then I will end up with n jobs if I have n no of tables.
&lt;BR /&gt;
&lt;BR /&gt;No restrictions of using only 2 jobs
&lt;BR /&gt;
&lt;BR /&gt;Can’t it be achieved by context or loop components or any other way
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;Thanks in advance,
&lt;BR /&gt;Lmit</description>
      <pubDate>Mon, 24 Feb 2020 15:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211703#M9623</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2020-02-24T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211704#M9624</link>
      <description>&lt;P&gt;The easiest way to achieve this is to use the database's built in backup and restore functionality called via Talend. If this is command line based you can use a tSystem component, if it can be run from within the DB environment you can use tDBRow to call whatever statements you need. This can indeed be done with a tLoop and context variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211704#M9624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-25T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211705#M9625</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks rhall for your reply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cant use DB build in functionality.so i need to achieve with other components&lt;/P&gt;
&lt;P&gt;So can anyone help with the idea to achieve this logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;lmit&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 05:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211705#M9625</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2020-02-28T05:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211706#M9626</link>
      <description>&lt;P&gt;There is only one way I could think of to do this and it can't be done with the Open Source version. You would need the subscription version to do this as it comes with the Dynamic schema functionality. I wrote on blog on how to do this between two different databases, you may be able to extrapolate from this....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 09:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211706#M9626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211707#M9627</link>
      <description>&lt;P&gt;thanks i will check&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 08:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211707#M9627</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2020-03-03T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211708#M9628</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;What are you using as a version of Talend? the Open Studio or Enterprise version (dynamic scheme)?&lt;BR /&gt;According to your answer, there is the possibility of making a dynamic backup with multiple sources and multiple columns and with a single Talend job.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;But, for restoration, it remains more complex. If you have for example an Id column in all your tables, it is possible with a single job but there too, your data must not be linked (because of the referential integrity).&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I can send you a generic job for backup, just give me the type of source and target.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 13:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211708#M9628</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-03T13:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211709#M9629</link>
      <description>Thanks cbma for your reply.
&lt;BR /&gt;
&lt;BR /&gt;My talend version is 6.5 enterprise version
&lt;BR /&gt;
&lt;BR /&gt;My source is sql(Maria DB) and target is csv file with pipe delimiter
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Lmit
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211709#M9629</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2020-03-03T15:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Backup &amp; Restore</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211710#M9630</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;You will find attached an example of jobs which allows to extract all the tables in CSV files. And conversely but it is a simple insertion and no integrity control.&lt;/P&gt; 
&lt;DIV class="tlid-input input"&gt; 
 &lt;DIV class="source-wrap"&gt; 
  &lt;DIV class="input-full-height-wrapper tlid-input-full-height-wrapper"&gt; 
   &lt;DIV class="source-input"&gt; 
    &lt;DIV class="source-footer-wrap source-or-target-footer"&gt; 
     &lt;DIV class="source-footer"&gt; 
      &lt;DIV class="src-tts left-positioned ttsbutton jfk-button-flat source-or-target-footer-button jfk-button"&gt; 
       &lt;DIV class="jfk-button-img"&gt;
         &amp;nbsp; 
       &lt;/DIV&gt; 
       &lt;DIV class="jfk-button-img"&gt; 
        &lt;SPAN&gt;I use a config file for connections, you can add context variables to not save some tables&lt;/SPAN&gt; 
       &lt;/DIV&gt; 
      &lt;/DIV&gt; 
     &lt;/DIV&gt; 
    &lt;/DIV&gt; 
   &lt;/DIV&gt; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt; 
&lt;DIV class="tlid-results-container results-container"&gt; 
 &lt;DIV class="tlid-result result-dict-wrapper"&gt; 
  &lt;DIV class="result tlid-copy-target"&gt; 
   &lt;DIV class="text-wrap tlid-copy-target"&gt; 
    &lt;DIV class="result-shield-container tlid-copy-target"&gt; 
     &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;You can ignore some tables in the component which lists all the tables in the DB&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the component of the flat files, I added the date and I create a directory for each table, I leave you the leisure to modify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Actually, you will have to perform tests on the requests before extracting the data and you can even edit the requests dynamically from the config file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;for example by adding a field in config file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;sqlWhere = FirstName LIKE 'Jo%'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;and you add this clause at the end of your request "SELECT * FROM" + GLOBAL_VARIABLE + "WHERE " + context.sqlWHERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;You can do &amp;lt;key,values&amp;gt; set &amp;lt;TableName; sqlWHERE&amp;gt; for example and you get that with a tFlowToIterate.&lt;/SPAN&gt;&lt;/SPAN&gt; 
    &lt;/DIV&gt; 
    &lt;DIV class="result-shield-container tlid-copy-target"&gt; 
     &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-03_17h48_57.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9q4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143592i532EB18E82C96C71/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9q4.png" alt="0683p000009M9q4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; 
    &lt;/DIV&gt; 
    &lt;DIV class="result-shield-container tlid-copy-target"&gt; 
     &lt;SPAN class="tlid-translation translation"&gt;For Dynamic SQL Query&amp;nbsp;&lt;A href="https://www.talend.com/blog/2016/03/30/talend-job-design-patterns-best-practices-part-2/?utm_medium=bloglink&amp;amp;utm_source=talend&amp;amp;utm_campaign=bloglink" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/blog/2016/03/30/talend-job-design-patterns-best-practices-part-2/?utm_medium=bloglink&amp;amp;utm_source=talend&amp;amp;utm_campaign=bloglink&lt;/A&gt;&lt;/SPAN&gt; 
    &lt;/DIV&gt; 
    &lt;DIV class="result-shield-container tlid-copy-target"&gt; 
     &lt;SPAN class="tlid-translation translation"&gt;If you have other questions !&amp;nbsp;&lt;/SPAN&gt; 
    &lt;/DIV&gt; 
   &lt;/DIV&gt; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lxk8"&gt;TalendForumResponses.zip&lt;/A&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backup-Restore/m-p/2211710#M9630</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-03T16:50:36Z</dc:date>
    </item>
  </channel>
</rss>

