<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Restoring_FOG_from_Backup</id>
		<title>Restoring FOG from Backup - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Restoring_FOG_from_Backup"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Restoring_FOG_from_Backup&amp;action=history"/>
		<updated>2026-05-17T16:57:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Restoring_FOG_from_Backup&amp;diff=2896&amp;oldid=prev</id>
		<title>Itismike: Created page with '== Restoring FOG ==  Restoring a FOG installation requires essentially the opposite actions as taken above.  This section assumes you backed your installation up manually.  This …'</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Restoring_FOG_from_Backup&amp;diff=2896&amp;oldid=prev"/>
				<updated>2011-02-10T03:53:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;== Restoring FOG ==  Restoring a FOG installation requires essentially the opposite actions as taken above.  This section assumes you backed your installation up manually.  This …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Restoring FOG ==&lt;br /&gt;
&lt;br /&gt;
Restoring a FOG installation requires essentially the opposite actions as taken above.  This section assumes you backed your installation up manually.  This section will assume that your backup is in /opt/fog_backup.  Also, you may need to be root for some of these actions.&lt;br /&gt;
&lt;br /&gt;
First, go to your backup directory:&lt;br /&gt;
 # cd /opt/fog_backup&lt;br /&gt;
 # ls&lt;br /&gt;
 fogopt fog.sql web&lt;br /&gt;
As you can see, I have named my /opt/fog into fogopt, and my /var/www/fog into web.  I chose not to backup my /images directory due to some issues copying such large files.&lt;br /&gt;
&lt;br /&gt;
=== Web Directory ===&lt;br /&gt;
&lt;br /&gt;
Restoring your web directory will take two steps.  First, remove the current one, if it exists, then copy the backup over to the appropriate location.&lt;br /&gt;
 # rm -rf /var/www/fog&lt;br /&gt;
 # cp -a /opt/fog_backup/web /var/www/fog&lt;br /&gt;
&lt;br /&gt;
=== OPT Directory ===&lt;br /&gt;
&lt;br /&gt;
Restoring the /opt directory is just about the same as the web directory above.&lt;br /&gt;
 # rm -rf /opt/fog&lt;br /&gt;
 # cp -a /opt/fog_backup/fogopt /opt/fog&lt;br /&gt;
&lt;br /&gt;
=== MySQL Databse ===&lt;br /&gt;
&lt;br /&gt;
In order to restore the database, you should first drop the current one (if it exists), then create a blank fog database, then import your backup.&lt;br /&gt;
 # mysql -u root -p&lt;br /&gt;
 Enter password: &lt;br /&gt;
 mysql&amp;gt; DROP DATABASE fog;&lt;br /&gt;
 mysql&amp;gt; CREATE DATABASE fog;&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
 # mysql -D fog -u root -p &amp;lt; fog.sql&lt;br /&gt;
&lt;br /&gt;
That should do it!&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	</feed>