<?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>Computer Support &#187; backup</title>
	<atom:link href="http://www.xiitec.com/blog/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backing Up Active Directory</title>
		<link>http://www.xiitec.com/blog/2008/02/25/backing-up-active-directory/</link>
		<comments>http://www.xiitec.com/blog/2008/02/25/backing-up-active-directory/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 19:26:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Active directory]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=181</guid>
		<description><![CDATA[Fortunately, domain controllers can be backed up while online, which makes the process relatively easy. And since Active Directory is included as part of the System State on domain controllers, you are required to back up only the System State, although you can back up other folders and drives as necessary. On a domain controller, [...]]]></description>
			<content:encoded><![CDATA[<p>Fortunately, domain controllers can be backed up while online, which makes the process relatively easy. And since Active Directory is included as part of the System State on domain controllers, you are required to back up only the System State, although you can back up other folders and drives as necessary. On a domain controller, the System State includes the following:</p>
<ul>
<li>Boot files</li>
<li>Registry</li>
<li>COM+ class registration database</li>
<li>Active Directory files</li>
<li>System Volume (SYSVOL)</li>
<li>Certificates database (if running Certificate Server)</li>
</ul>
<p><span id="more-181"></span>Back up the System State, which includes the Active Directory-related files on the domain controller. Here are the directions for backing up the System State using the MS Backup utility that comes installed on Windows 2000 and Windows Server 2003 computers.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li>Go to Start &gt;  All Programs (or Programs for Windows 2000)  &gt; Accessories  &gt; System Tools  &gt; Backup.</li>
<li>Click the Advanced Mode link.</li>
<li>Click the Backup tab.</li>
<li>Check the box beside System State.</li>
<li>Check the box beside any other files, directories, or drives you would also like to back up.</li>
<li>For Backup destination, select either File or Tape depending on where you want to back up the data.</li>
<li>For Backup media or file name, type either the name of a file or select the tape where to save the backup.</li>
<li>Click the Start Backup button twice.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>The NTBackup utility supports several command-line parameters that you can use to initiate backups without ever bringing up the GUI.</p>
<p>For the complete list of supported commands on Windows 2000, see MS KB 300439 (How to Use Command Line Parameters with the &#8220;Ntbackup&#8221; Command).</p>
<p>For the complete list of supported commands on Windows Server 2003, see MS KB 814583 (HOW TO: Use Command Line Parameters With the Ntbackup Command in Windows Server 2003).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/25/backing-up-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing Up the DHCP Database</title>
		<link>http://www.xiitec.com/blog/2008/02/22/backing-up-the-dhcp-database/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/backing-up-the-dhcp-database/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:05:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=170</guid>
		<description><![CDATA[The DHCP Server service automatically performs a backup of the DHCP database and DHCP Server registry configuration key every 60 minutes (and overwrites the previous back up). You can also perform a manual backup as outlined in the GUI solution. Backup files are stored in %SystemRoot%\system32\dhcp\backup by default, but you can change that location as [...]]]></description>
			<content:encoded><![CDATA[<p>The DHCP Server service automatically performs a backup of the DHCP database and DHCP Server registry configuration key every 60 minutes (and overwrites the previous back up). You can also perform a manual backup as outlined in the GUI solution. Backup files are stored in %SystemRoot%\system32\dhcp\backup by default, but you can change that location as described in the CLI solution. You should change this path to another drive so that a disk failure doesn&#8217;t impact both the active database and the backup files.</p>
<p><span id="more-170"></span></p>
<p>The DHCP Server takes care of performing regular database backups, but you&#8217;ll still need to use a backup tool such as NTBackup to archive those backups on a regular basis. As long as you are backing up the %SystemRoot%\system32\dhcp directory and the system state (which includes the registry), you can restore the database and server configuration on the same server or on another server if necessary.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in on the target DHCP Server.</li>
<li>In the left pane, click the server node.</li>
<li>From the menu, select Action  Backup.</li>
<li>Select the folder to store the backup files in and click OK.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>You can&#8217;t initiate a backup from netsh, but you can configure how frequently the automatic backups occur and where backup files are stored. The following command changes the default backup time to 24 hours (1,440 minutes):</p>
<pre>&gt; netsh dhcp server set databasebackupinterval 1440</pre>
<p>The following command changes the backup location to d:\dhcp\backups:</p>
<pre>&gt; netsh dhcp server set databasebackuppath d:\dhcp\backups</pre>
<p>You can also dump the DHCP Server configuration to a text file and import it later using netsh. Here is how you export it:</p>
<pre>&gt; netsh dhcp server dump &gt; dhcpconfig.dmp</pre>
<p>The dump option does not export any lease information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/backing-up-the-dhcp-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing Up Directories</title>
		<link>http://www.xiitec.com/blog/2008/02/04/backing-up-directories/</link>
		<comments>http://www.xiitec.com/blog/2008/02/04/backing-up-directories/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 19:21:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Shell scripts]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[directory]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=94</guid>
		<description><![CDATA[Related to the task of backing up entire file systems is the user-centric task of taking a snapshot of a specific directory or directory tree. This simple script allows users to easily create a compressed tar archive of a specified directory.

#!/bin/sh
# archivedir &#8211; Creates a compressed archive of the specified directory.
maxarchivedir=10     [...]]]></description>
			<content:encoded><![CDATA[<p>Related to the task of backing up entire file systems is the user-centric task of taking a snapshot of a specific directory or directory tree. This simple script allows users to easily create a compressed tar archive of a specified directory.</p>
<p><span id="more-94"></span></p>
<blockquote><p>#!/bin/sh</p>
<p># archivedir &#8211; Creates a compressed archive of the specified directory.</p>
<p>maxarchivedir=10        # size, in blocks, of &#8216;big&#8217; directory<br />
compress=gzip           # change to your favorite compress app<br />
progname=$(basename $0)</p>
<p>if [ $# -eq 0 ] ; then<br />
echo &#8220;Usage: $progname directory&#8221; &gt;&amp;2 ;exit 1<br />
fi</p>
<p>if [ ! -d $1 ] ; then<br />
echo &#8220;${progname}: can&#8217;t find directory $1 to archive.&#8221; &gt;&amp;2; exit 1<br />
fi</p>
<p>if [ "$(basename $1)" != "$1" -o "$1" = "." ] ; then<br />
echo &#8220;${progname}: You must specify a subdirectory&#8221; &gt;&amp;2<br />
exit 1<br />
fi</p>
<p>if [ ! -w . ] ; then<br />
echo &#8220;${progname}: cannot write archive file to current directory.&#8221; &gt;&amp;2<br />
exit 1<br />
fi</p>
<p>dirsize=&#8221;$(du -s $1 | awk &#8216;{print $1}&#8217;)&#8221;</p>
<p>if [ $dirsize -gt $maxarchivedir ] ; then<br />
echo -n &#8220;Warning: directory $1 is $dirsize blocks. Proceed? [n] &#8221;<br />
read answer<br />
answer=&#8221;$(echo $answer | tr &#8216;[:upper:]&#8216; &#8216;[:lower:]&#8216; | cut -c1)&#8221;<br />
if [ "$answer" != "y" ] ; then<br />
echo &#8220;${progname}: archive of directory $1 canceled.&#8221; &gt;&amp;2<br />
exit 0<br />
fi<br />
fi<br />
archivename=&#8221;$(echo $1 | sed &#8217;s/$/.tgz/&#8217;)&#8221;</p>
<p>if tar cf &#8211; $1 | $compress &gt; $archivename ; then<br />
echo &#8220;Directory $1 archived as $archivename&#8221;<br />
else<br />
echo &#8220;Warning: tar encountered errors archiving $1&#8243;<br />
fi</p>
<p>exit 0</p></blockquote>
<p>This script is almost all error-checking code, to ensure that it never causes a loss of data or creates an incorrect snapshot. In addition to the typical tests to validate the presence and appropriateness of the starting argument, this script also forces the user to be in the parent directory of the subdirectory to be compressed and archived, which ensures that the archive file is saved in the proper place upon completion. The conditional if [ ! -w . ] ; then verifies that the user has write permission on the current directory. And this script even warns users before archiving if the resultant backup file would be unusually large.</p>
<p>Finally, the actual command that archives the specified directory is</p>
<blockquote><p>tar cf &#8211; $1 | $compress &gt; $archivename</p></blockquote>
<p>The return code of this command is tested to ensure that the script never deletes the directory if an error of any sort occurs.</p>
<p>This script should be invoked with the name of the desired directory to archive as its only argument. To ensure that the script doesn&#8217;t try to archive itself, it requires that a subdirectory of the current directory be specified as the argument, rather than &#8220;.&#8221;.</p>
<blockquote><p>$ archivedir scripts<br />
Warning: directory scripts is 2224 blocks. Proceed? [n] n<br />
archivedir: archive of directory scripts canceled.</p></blockquote>
<p>This seemed as though it might be a big archive, so I hesitated to create it, but thinking about it, there&#8217;s no reason not to proceed after all:</p>
<blockquote><p>$ archivedir scripts<br />
Warning: directory scripts is 2224 blocks. Proceed? [n] y<br />
Directory scripts archived as scripts.tgz</p></blockquote>
<p>The results:</p>
<blockquote><p>$ ls -l scripts.tgz<br />
-rw-r&#8211;r&#8211;  1 taylor  staff  325648 Jul 14 08:01 scripts.tgz</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/04/backing-up-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

