<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sheenaustin.com &#187; Restore</title>
	<atom:link href="http://www.sheenaustin.com/tag/restore/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sheenaustin.com</link>
	<description>my home on the interweb</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:59:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to Backup and Restore Active Directory</title>
		<link>http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/</link>
		<comments>http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 00:53:00 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Restore]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/</guid>
		<description><![CDATA[There are many documents written about backing up Active Directory but I didn’t find enough documentation that would help us restore Active Directory. So here is a guide aimed to provide insights into correctly backing up and restoring Active Directory. Here is my mini how to – I have tried to keep it as simple [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/04/28/setting-up-split-brain-dns-in-windows-server/' rel='bookmark' title='Permanent Link: Setting up Split Brain DNS in Windows Server 2003'>Setting up Split Brain DNS in Windows Server 2003</a></li>
<li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/04/active-directory-audit-script/' rel='bookmark' title='Permanent Link: Active Directory Audit Script'>Active Directory Audit Script</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/' rel='bookmark' title='Permanent Link: Active Directory Password Expiry Reminder Email'>Active Directory Password Expiry Reminder Email</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are many documents written about backing up Active Directory but I didn’t find enough documentation that would help us restore Active Directory. So here is a guide aimed to provide insights into correctly backing up and restoring Active Directory.</p>
<p>Here is my mini how to – I have tried to keep it as simple as possible:</p>
<p> <span id="more-162"></span><br />
<h1></h1>
<h6>Backing Up Active Directory</h6>
<p>Active Directory depends on the system state and the NTDS database among other things. So it is important to back these up on your domain controller. It is critically important to ensure that the system state data on a domain controller is backed up regularly since this contains all the core system files that are required to run a domain controller. Manually selecting what needs to be backed up will be extremely complicated and could be error prone – stay away from that path – just backup the entire system state.</p>
<p>What needs to be backed up? – System State</p>
<p>What kind of Backup needs to be run? – Full backup of the system state.</p>
<p>How often is good enough? – Daily &#8211; You will thank me for this <img src='http://www.sheenaustin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><b>Restoring Active Directory</b> (for experts who just need the short version)</p>
<p>There are two types of restores:</p>
<p>1. <b>Normal Restore</b> – This was also called the Non-Authoritative restore. This is generally performed when you need to restore a domain controller that has failed and there are other domain controllers on the domain. Another option would be to just reinstall the domain controller, clean up the AD metadata of all references to the failed DC and then promote the new server to a DC and replicate. If you are in a situation where you cannot do that, to perform a normal (or Non-Authoritative restore) you would:</p>
<p>a. Boot the domain controller into the Domain Services Restore Mode .</p>
<p>b. Restore system state </p>
<p>c. Reboot into the normal mode.</p>
<p>d. Replicate from other domain controllers.</p>
<p>2. <b>Authoritative Restore</b> – This would be performed in cases where you make a mistake like, say, delete an OU. In this case, a normal restore would not help since the OU that you just restored would get deleted again when you replicate changes with other domain controllers. An authoritative restore would help you undo a big mistake by ensuring that you are taken back to a working copy of AD. However, changes that you made since the last full backup would be lost. (So run your full backups daily!). To perform an authoritative restore:</p>
<p>a. Perform a normal restore.</p>
<p>b. Don’t reboot after the restore.</p>
<p>c. Use ntdsutil to get into the authoritative restore mode.</p>
<p>d. Specify if you want to mark the entire database or just a subtree as authoritative.</p>
<p>e. Quit the utility and reboot the server</p>
<p>3. <b>Primary Restore</b> – This restore is only used when you have a major disaster (read complete meltdown) and you have no working domain controllers. In such a case, you will have restore the entire domain from backups. The working process is very similar to the Normal Restore procedure mentioned above. This is how you would do it:</p>
<p>a. Boot the domain controller into the Domain Services Restore Mode .</p>
<p>b. Restore system state – ensure that the advanced option ‘Mark the restored data as the primary data for all replicas’ is checked.</p>
<p>c. Reboot into the normal mode.</p>
<p><b></b></p>
<p><b></b></p>
<p><b>Restoring Active Directory </b>(for the rest of us)</p>
<p>1. <b>Normal Restore</b> – Here’s the step by step.</p>
<p>a. Reboot Server</p>
<p>b. During startup press F8 and choose, ‘Directory Services Restore Mode (Windows DCs only)</p>
<p>c. Choose the OS to be started, hit enter.</p>
<p>d. Hit OK at the Safe Mode login.</p>
<p>e. Open up the NTBackup utility.</p>
<p>f. Click next on the welcome page.</p>
<p>g. Select ‘Restore Files and Settings’ from the backup or restore page. Click Next.</p>
<p>h. Choose the backup you want to restore from the ‘What to restore’ page. Click Next.</p>
<p>i. Click Finish to start the restore. (Advanced options are best left untouched for a normal restore unless you want to save the backup elsewhere.)</p>
<p>j. Reboot server.</p>
<p>2. <b>Authoritative Restore –</b></p>
<p>a. Perform a normal restore as mentioned before.</p>
<p>b. Do not reboot server after the restore.</p>
<p>c. Click on start -&gt; run -&gt; type ntdsutil.</p>
<p>d. Now type ‘authoritative restore’</p>
<p>e. Now specify the components you want to make authoritative. Enter either ‘restore database’ or ‘restore subtree’ along with the DN of the AD object you want to make authoritative.</p>
<p>f. Confirm your actions when prompted.</p>
<p>g. Type quit until the utility exits.</p>
<p>h. Reboot server.</p>
<p>3. <b>Primary Restore –</b></p>
<p>a. Reboot Server</p>
<p>b. During startup press F8 and choose, ‘Directory Services Restore Mode (Windows DCs only)</p>
<p>c. Choose the OS to be started, hit enter.</p>
<p>d. Hit OK at the Safe Mode login.</p>
<p>e. Open up the NTBackup utility.</p>
<p>f. Click next on the welcome page.</p>
<p>g. Select ‘Restore Files and Settings’ from the backup or restore page. Click Next.</p>
<p>h. Choose the backup you want to restore from the ‘What to restore’ page. Click Next.</p>
<p>i. Click Advanced.</p>
<p>j. Ensure that on the ‘Where to Restore’ page, the default setting ‘Original Location’ is selected. Click Next.</p>
<p>k. On the How to Restore page, ensure that ‘Replace existing files’ is selected. Click Next.</p>
<p>l. On the Advanced Restore Options page – enable the ‘When restoring replicated data sets, mark the restored data as the primary data for all replicas’ option. Click Next.</p>
<p>m. Click Finish to start the primary restore.</p>
<p>n. Reboot server.</p>
<p>o. Go to sleep <img src='http://www.sheenaustin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#160;</p>
<p>PS: As always, please exercise due diligence when using the instructions in a live environment. Kindly do not blame me if something doesn&#8217;t work if Microsoft decides to change their code.</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/04/28/setting-up-split-brain-dns-in-windows-server/' rel='bookmark' title='Permanent Link: Setting up Split Brain DNS in Windows Server 2003'>Setting up Split Brain DNS in Windows Server 2003</a></li>
<li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/04/active-directory-audit-script/' rel='bookmark' title='Permanent Link: Active Directory Audit Script'>Active Directory Audit Script</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/' rel='bookmark' title='Permanent Link: Active Directory Password Expiry Reminder Email'>Active Directory Password Expiry Reminder Email</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
