<?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>IT Info Magazine &#187; script</title>
	<atom:link href="http://www.itinfomag.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itinfomag.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 08:26:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Rsync on Windows Platform</title>
		<link>http://www.itinfomag.com/data-backup-recovery/rsync-on-windows-platform/</link>
		<comments>http://www.itinfomag.com/data-backup-recovery/rsync-on-windows-platform/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:27:38 +0000</pubDate>
		<dc:creator>chribonn</dc:creator>
				<category><![CDATA[Data Backup & Recovery]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.backupmyhost.com/blog/?p=136</guid>
		<description><![CDATA[Setup files Addendum]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="cwrsync(Code).rar" href="http://www.itinfomag.com/downloads/cwrsync(Code).rar">Setup files</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/CvwdkZLNtnA&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/CvwdkZLNtnA&amp;hl=en_US&amp;fs=1&amp;" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/b5u-0As8x_U&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/b5u-0As8x_U&amp;hl=en_US&amp;fs=1&amp;" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Dmq_9Tom1UM&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/Dmq_9Tom1UM&amp;hl=en_US&amp;fs=1&amp;" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><strong>Addendum</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/kkVAy3OGmgE&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/kkVAy3OGmgE&amp;hl=en_US&amp;fs=1&amp;" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itinfomag.com/data-backup-recovery/rsync-on-windows-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated email notification for Windows backup</title>
		<link>http://www.itinfomag.com/data-backup-recovery/automated-email-notification-for-windows-backup/</link>
		<comments>http://www.itinfomag.com/data-backup-recovery/automated-email-notification-for-windows-backup/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 12:56:45 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Audit]]></category>
		<category><![CDATA[Data Backup & Recovery]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.backupmyhost.com/blog/?p=22</guid>
		<description><![CDATA[Beef-Up!!! the native Windows backup utility!!!]]></description>
			<content:encoded><![CDATA[<div id="attachment_42" class="wp-caption alignleft" style="width: 137px"><img class="size-full wp-image-42 " title="email" src="http://www.itinfomag.com/wp-content/uploads/2009/10/email.jpg" alt="email notification" width="127" height="84" /><p class="wp-caption-text">email notification</p></div>
<p>The native backup utility found on Windows servers is one cool application that has saved many SMBs real cash!  Apart from fulfilling its main functionality, it is found to be very reliable and effective. Problems arise when extra features are required such as, backing up to external storage devices and/or utilizing advanced backup features! One useful feature that is standard in purchasable applications is email notification of backup jobs. <strong><a title="email script.bat" href="http://www.itinfomag.com/downloads/email script.bat">The script below gives you that functionality</a>!!</strong>!! It’s free and simple to implement!!!!</p>
<p>The implementation steps of the script are as follows:</p>
<ol>
<li>Create a backup job using Windows backup &#8211; Start/All Programs/Accessories/System Tools/Backup and set a job schedule</li>
<li>Open the window Scheduled Tasks &#8211; Start/Control Panel/Scheduled Tasks and find the newly created scheduled job.</li>
<li>From the properties window of this job copy the highlighted text from the Run text field</li>
<li>Copy this text in a new batch file called &#8216;mybackup.bat&#8217; (any name you like without quotes)</li>
<li>Take a note of the batch file location and enter the full path in the Run text field of step 3 ex: c:\documents\mybackup.bat</li>
<li>Close the properties window by clicking OK and enter an admin password if prompted</li>
<li>Add the sample script shown below in the batch file after the text entered in step 4</li>
<li>Edit the script text to reflect your email &amp; path settings</li>
</ol>
<p style="text-align: center;"><strong><a title="email script" href="http://www.itinfomag.com/downloads/email script.bat">Sample script</a></strong></p>
<p style="text-align: left;">Copied text from step 3 goes here</p>
<p style="text-align: left;"><em>@echo off<br />
set Sender=&#8221;source email addess&#8221;<br />
set Receiver=&#8221;your email address&#8221;<br />
set Host=&#8221;IP address of source email server&#8221;<br />
set Subject=&#8221;Backup name/title&#8221;</em></p>
<p style="text-align: left;"><em>set logdir=&#8221;%USERPROFILE%\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data&#8221;<br />
REM ex &#8211; C:\Documents and Settings\administrator\ for %USERPROFILE%<br />
set result=&#8221;%temp%\latestlog.txt&#8221;</em></p>
<p style="text-align: left;"><em>pushd %logdir%<br />
for /f &#8220;tokens=1 delims=&#8221; %%I in (&#8216;dir /B /O-D&#8217;) do (<br />
 if &#8220;%%~xI&#8221;==&#8221;.log&#8221; (<br />
   type &#8220;%%~fI&#8221; &gt; %result%<br />
   goto :end<br />
   )<br />
 )<br />
:end<br />
popd</em></p>
<p style="text-align: left;"><em>c:\windows\system32\blat.exe %result% -f %Sender% -to %Receiver% -server %Host% -subject %Subject%<br />
del /q /f &#8220;%result%&#8221;</em></p>
<p><strong> </strong></p>
<p style="text-align: center;">
<div id="attachment_44" class="wp-caption aligncenter" style="width: 131px"><img class="size-full wp-image-44 " title="explain" src="http://www.itinfomag.com/wp-content/uploads/2009/10/explain.jpg" alt="explanation" width="121" height="112" /><p class="wp-caption-text">explanation</p></div>
<p style="text-align: center;">Explanation of the sample script:</p>
<p> <em>pushd</em><br />
==&gt; stores the current directory for use by the POPD command, then change to the specified directory</p>
<p><em>for /f &#8220;tokens=1 delims=&#8221; %%I in (&#8216;dir /B /O-D&#8217;) do<br />
</em>=&gt; parse each line of the directory listing (log files) and get the name of each file one by one</p>
<p><em>dir /B /O-D</em>  ==&gt; remove heading info from directory list, and list files by date in reverse order</p>
<p><em>until<br />
if &#8220;%%~xI&#8221;==&#8221;.log&#8221;<br />
</em>==&gt;if the current file (its extension only) is .log</p>
<p><em>then<br />
type &#8220;%%~fI&#8221; &gt; %result%<br />
</em>==&gt; then copy the contents of the current log file to the variable file latestlog.txt</p>
<p><em>c:\windows\system32\blat.exe</em>  ==&gt; Blat is a Win32 command line utility that sends eMail using SMTP &#8211; http://www.blat.net/?docs/credits.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itinfomag.com/data-backup-recovery/automated-email-notification-for-windows-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

