<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Essential - database file</title><link>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6279/essential---database-file</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>Essential - database file</title><link>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6279/essential---database-file</link><pubDate>Tue, 03 May 2022 11:11:29 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:27a889d9-361a-4e12-af0a-08785177b3db</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6279/essential---database-file#comments</comments><description>Current Revision posted to Wiki by Eugene Kuchynski on 5/3/2022 11:11:29 AM&lt;br /&gt;
&lt;p&gt;This article explains where all the data is stored in the Essential version, so you can safely copy/move/backup/restore your data without worrying to loose it.&lt;/p&gt;
&lt;p&gt;Actually, there are only 2 files where your data and application configuration is stored:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;tbmdb.sqlite&lt;/strong&gt; (database file). Default location: &lt;strong&gt;InstallationFolder\resources\bin\database&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;appsettings_global.json&lt;/strong&gt; (config file).&amp;nbsp;&lt;span&gt;Default location:&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InstallationFolder\resources\bin\&lt;/strong&gt;&lt;span&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the application settings, you could change default database file location. In this case, you can find the path in the&amp;nbsp;&lt;strong&gt;appsettings_global.json&lt;/strong&gt;, under&amp;nbsp;&lt;strong&gt;ConnectionStringLocal&lt;/strong&gt; key.&lt;/p&gt;
&lt;h2&gt;Resetting database and database version&lt;/h2&gt;
&lt;p&gt;Config file contains one important key:&amp;nbsp;&lt;strong&gt;DatabaseVersion&lt;/strong&gt;. Initially, database version is 0. With time, when application gets updated, database version is increased. When you launch application, the system checks&amp;nbsp;&lt;strong&gt;DatabaseVersion&lt;/strong&gt; value, and if it&amp;#39;s lower than the latest version, application will attempt to update database to latest version.&lt;/p&gt;
&lt;p&gt;Example. If you delete database file and launch TBM, the system, will create empty database file, then read&amp;nbsp;&lt;strong&gt;DatabaseVersion&amp;nbsp;&lt;/strong&gt;value, and if that value equals to latest version, upgrade won&amp;#39;t happen, and you&amp;#39;ll get non-initialized database. This means, that to start from scratch, you should not only delete database file, but also change&amp;nbsp;&lt;strong&gt;DatabaseVersion&amp;nbsp;&lt;/strong&gt;value in the config file to &lt;strong&gt;0&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Manual backup&lt;/h2&gt;
&lt;p&gt;Just copy 2 mentioned files to safe location.&lt;/p&gt;
&lt;h2&gt;Manual backup restore&lt;/h2&gt;
&lt;p&gt;You can just copy backup file to the database location and change it&amp;#39;s name to&amp;nbsp;&lt;strong&gt;tbmdb.sqlite&lt;/strong&gt;. Be careful - if such file already exists, maybe it will be necessary to backup it, to avoid accidental overwriting. Additionally, it is recommended to restore&amp;nbsp;&lt;strong&gt;appsettings_global.json&lt;/strong&gt; file as well, or change&amp;nbsp;&lt;strong&gt;DatabaseVersion&amp;nbsp;&lt;/strong&gt;&lt;span&gt;value manually, if backup was created earlier, and after that you have installed any updates.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>