<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.x-cart.com/index.php?action=history&amp;feed=atom&amp;title=LiteCommerce%3ABacking_up_and_Restoring_the_Database</id>
	<title>LiteCommerce:Backing up and Restoring the Database - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://help.x-cart.com/index.php?action=history&amp;feed=atom&amp;title=LiteCommerce%3ABacking_up_and_Restoring_the_Database"/>
	<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;action=history"/>
	<updated>2026-05-19T23:16:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;diff=7894&amp;oldid=prev</id>
		<title>Dohtur at 08:31, 31 May 2012</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;diff=7894&amp;oldid=prev"/>
		<updated>2012-05-31T08:31:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 08:31, 31 May 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{LC2_disclaimer}}&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Database backups are performed for safekeeping to prevent the loss of valuable business data in case the original store database is corrupted or otherwise damaged.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Database backups are performed for safekeeping to prevent the loss of valuable business data in case the original store database is corrupted or otherwise damaged.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dohtur</name></author>
		
	</entry>
	<entry>
		<id>https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;diff=1883&amp;oldid=prev</id>
		<title>Ivka at 09:24, 19 January 2010</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;diff=1883&amp;oldid=prev"/>
		<updated>2010-01-19T09:24:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:24, 19 January 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Depending on the volume of your business information in the database (which includes order, customer, catalog and other data) backup procedures can take up to several minutes.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Depending on the volume of your business information in the database (which includes order, customer, catalog and other data) backup procedures can take up to several minutes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Note1|Note: If you store product images in the database, they will be included in the SQL dump file. If product images are located on the file system, they are not included. To backup such images you need to download them directly from the server. See the section [&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//www.x-cart.com/xcart_manual/online/storing_image_files.htm &lt;/del&gt;&amp;quot;Storing Image Files&amp;quot;] of this manual for more details.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Note1|Note: If you store product images in the database, they will be included in the SQL dump file. If product images are located on the file system, they are not included. To backup such images you need to download them directly from the server. See the section [&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[LiteCommerce&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Storing Image Files | &lt;/ins&gt;&amp;quot;Storing Image Files&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/ins&gt;] of this manual for more details.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Restoring the Database ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Restoring the Database ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ivka</name></author>
		
	</entry>
	<entry>
		<id>https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;diff=1819&amp;oldid=prev</id>
		<title>Ivka: Created page with 'Database backups are performed for safekeeping to prevent the loss of valuable business data in case the original store database is corrupted or otherwise damaged.  == Backing up…'</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=LiteCommerce:Backing_up_and_Restoring_the_Database&amp;diff=1819&amp;oldid=prev"/>
		<updated>2010-01-19T06:56:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Database backups are performed for safekeeping to prevent the loss of valuable business data in case the original store database is corrupted or otherwise damaged.  == Backing up…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Database backups are performed for safekeeping to prevent the loss of valuable business data in case the original store database is corrupted or otherwise damaged.&lt;br /&gt;
&lt;br /&gt;
== Backing up the Database ==&lt;br /&gt;
&lt;br /&gt;
In order to perform a backup, choose the ''''DB Backup/Restore'''' section from the ''''Maintenance'''' menu of the Administrator Zone. You will see the contents of the ''''Backup database'''' tab (Figure 4-1). LiteCommerce software uses SQL format (also called '''SQL dump''') files for backup purposes.&lt;br /&gt;
&lt;br /&gt;
You can choose one of the two alternative ways of creating a backup of your store database:&lt;br /&gt;
&lt;br /&gt;
# '''Download your database data''' directly to your local computer by clicking on the ''''Download SQL file'''' button. The downloaded file is named 'db_backup.sql.php'.&lt;br /&gt;
# '''Save database data''' to a file within your LiteCommerce installation directory ('var/backup/sqldump.sql.php') by clicking on the ''''Create SQL file'''' button. If you choose the second option, you can download the file from the server later on and delete it from the server by clicking on the ''''Delete SQL file'''' button. The ''''Delete SQL file'''' button only appears when the backup SQL file is present in the system.&lt;br /&gt;
&lt;br /&gt;
{{Note1|Note: If the 'var/backup/sqldump.sql.php' file already exists on the server, it will be overwritten.}} &amp;lt;div&amp;gt;&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;[[Image:lc22-4-01.gif|600px|Figure 4-1: Backing up the store database]]&lt;br /&gt;
&lt;br /&gt;
Figure 4-1: Backing up the store database&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Depending on the volume of your business information in the database (which includes order, customer, catalog and other data) backup procedures can take up to several minutes.&lt;br /&gt;
&lt;br /&gt;
{{Note1|Note: If you store product images in the database, they will be included in the SQL dump file. If product images are located on the file system, they are not included. To backup such images you need to download them directly from the server. See the section [http://www.x-cart.com/xcart_manual/online/storing_image_files.htm &amp;quot;Storing Image Files&amp;quot;] of this manual for more details.}}&lt;br /&gt;
&lt;br /&gt;
== Restoring the Database ==&lt;br /&gt;
&lt;br /&gt;
The inverse operation can be performed through the ''''Restore database'''' tab in the same section (Figure 4-2). Two options are available:&lt;br /&gt;
&lt;br /&gt;
* You can '''upload the database data''' directly from your local computer by clicking on the ''''Browse...'''' button, choosing an SQL dump file and clicking on the ''''Upload and restore'''' button. While this method is more convenient, it has a file size limitation.&lt;br /&gt;
&lt;br /&gt;
{{Note1|Note: The PHP's default maximum allowed uploading file size is 2Mb. This can be changed by modifying the values of 'upload_max_filesize' and 'post_max_size' parameters in the configuration file of your PHP installation (file 'php.ini'). To upload large files, the value of 'post_max_size' must be larger than 'upload_max_filesize'. Additionally, if memory limit is enabled by your configure script, 'memory_limit' also affects file uploading. Generally speaking, 'memory_limit' should be larger than 'post_max_size'. }}&lt;br /&gt;
&lt;br /&gt;
* Alternatively, upload the database data file named 'sqldump.sql.php' manually to the 'var/backup/' sub-directory of your LiteCommerce installation on the web server and click on the ''''Restore from server'''' button. After the restore you might want to delete the file from the server by clicking on the ''''Delete SQL file'''' button in the ''''Backup database'''' tab.&lt;br /&gt;
&lt;br /&gt;
{{Note1|Important: Restore procedure is irreversible and erases all data tables from your store database. It is highly recommended that you backup your present database data before restoring one of the previous database states from a backup. }} &amp;lt;div&amp;gt;&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;[[Image:lc22-4-02.gif|592px|Figure 4-2: Restoring the database]]&lt;br /&gt;
&lt;br /&gt;
Figure 4-2: Restoring the database&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since the restore procedure erases all the data in the database including the login history, the store administrator needs to re-login into the Administrator Zone once the procedure is finished. Such behavior is in line with the normal operation logic and is not an indication of a problem of any kind.&lt;br /&gt;
&lt;br /&gt;
[[Category:LiteCommerce user manual]]&lt;/div&gt;</summary>
		<author><name>Ivka</name></author>
		
	</entry>
</feed>