GeneXus FAQ - How to backup a KB?

Official Content
This documentation is valid for:

To back up a Knowledge Base you just need to backup the associated SQL Server database.

To know which is the associated SQL Server database of a Knowledge base, explore the knowledge base directory and open the Knowledgebase.connection file with a text editor.

You will find information like the following:

<ConnectionInformation>
	<DBName>GX_KB_Sample</DBName>
	<IntegratedSecurity>True</IntegratedSecurity>
	<ServerInstance>MySQLServer\SQLEXPRESS</ServerInstance>
	<CreateDbInKbFolder>True</CreateDbInKbFolder>
	<Directory>C:\Models\Sample</Directory>
	<DataFile>GX_KB_Sample.mdf</DataFile>
	<LogFile>GX_KB_Sample_log.LDF</LogFile>
	<HostName>MyMachine</HostName>
</ConnectionInformation>


The database you have to backup is the one named "GX_KB_Sample" in the "MyServer\SQLEXPRESS" SQL Server instance.

You can just use the SQL Server backup option in order to back up the DB or backup the MDF file.

Be sure that no one is using the KB while you back up.
 

See also

HowTo: Creating a KB From a .MDF