Snapshot Backups? what is that all about?
Here is a step-by-step guide for anyone that wants to get started with Active Directory Snapshot Backups In Windows 2008!
Active Directory Administrators can now mount a snapshot from any given time, browse the snapshot and then perform restore individual objects if they want. How cool is that!!.
The following procedure will create a snap shot, mount it and then dismount it. All very exciting but it will give you the basics and please dont try this in production!!.
Create the Snapshop first
- Type the following command at a domain controller running Windows 2008
- ntdsutil and press enter. Type act inst ntds and press enter.
- Type snapshot and press enter, type help and review the options.
- To create a snapshot type the following command:
Create and press enter, Verify that the command completed successfully.
Note: This command can be scheduled using an at job. - To mount the snapshot type the following command:
mount <snapshot guid> and press enter.
Note: The snapshot guid is reported by the create command output. - Verify that the snapshot was successfully mounted.
Note: Write down or memorize the path to the D:\ partition (since the database resides within that partition.
Sample: C:\$SNAP_<TimeStamp>_VOLUMED$\ - Start Windows Explorer and navigate to C:\ and ensure that you can see the there mount points, and browse them.
- Start a new command prompt by click start click run and type cmd and press enter.
- Type the following to start the offline browser as a live directory services.
dsmain –dbpath:C\$SNAP_<TimeStamp>_VOLUMED$\NTDS\ntds.dit –ldapport 345 –sslport:346 –gcport:347 –gcsslport:348 and press enter - Verify that the start-up was complete.
Browse the Snapshop
-
- Start a LDP.exe by click start and click run and type ldp.exe and press enter.
- Within ldp.exe click the Connection menu and choose Connect and specify the following options:
Server: localhost
Port: 345
Click the OK button. - Click the Connections menu and chose Bind (or press Ctrl + B) and accept the default settings (bind as currently logged on user) and click the OK button.
- Click the View menu and chose Tree (or press Ctrl + T), Choose the Domain NC and click the OK button, and verify that you can browse the Domain NC from the snapshot backup.
- Close ldp.exe
- In the command prompt where you launched the DS Offline Browser (dsamian.exe) and press Ctrl + C to kill the instance, Type exit to close the command prompt.
- In the command prompt where you running ntdsutil with the snapshot context, type the following command:
list mounted and press enter.
Dismount and delete an Active Directory Snapshot backup
- Type the following command to dismount the snapshot backup:
Dismount <snapshot GUID reported by the list command above> and press enter. - Type the following command to delete a snapshot backup
delete <snapshot GUID reported by the list command above> and press enter.
- Type the following command to dismount the snapshot backup: