<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Windows Batch Script To Backup Data</title>
	<atom:link href="http://www.pcmech.com/article/windows-batch-script-to-backup-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/</link>
	<description>Helping Normal People Get Their Geek On</description>
	<lastBuildDate>Sat, 21 Nov 2009 22:17:25 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason Faulker</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-35006</link>
		<dc:creator>Jason Faulker</dc:creator>
		<pubDate>Tue, 17 Nov 2009 14:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-35006</guid>
		<description>I&#039;m doing this in a couple of scripts I have on our servers, it is not very difficult.

Basically you use the FTP command in your script (this is a tool built into Windows) and then pass it a file which has the FTP server name, password and then the subsequent transfer commands each on a single line.

There are plenty of pages out there which explain how to use this, so google help regarding the Windows FTP command and the command line and you can see some examples.</description>
		<content:encoded><![CDATA[<p>I&#8217;m doing this in a couple of scripts I have on our servers, it is not very difficult.</p>
<p>Basically you use the FTP command in your script (this is a tool built into Windows) and then pass it a file which has the FTP server name, password and then the subsequent transfer commands each on a single line.</p>
<p>There are plenty of pages out there which explain how to use this, so google help regarding the Windows FTP command and the command line and you can see some examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-34939</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 15 Nov 2009 16:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-34939</guid>
		<description>I love this script, any plans to make modifications to allow FTP upload for offsite backups?</description>
		<content:encoded><![CDATA[<p>I love this script, any plans to make modifications to allow FTP upload for offsite backups?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-34562</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 05 Nov 2009 02:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-34562</guid>
		<description>Wow thanks! Thank you for sharing this with me and everyone else. =)

I love this script. =D

Thank you.</description>
		<content:encoded><![CDATA[<p>Wow thanks! Thank you for sharing this with me and everyone else. =)</p>
<p>I love this script. =D</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Faulkner</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-34552</link>
		<dc:creator>Jason Faulkner</dc:creator>
		<pubDate>Wed, 04 Nov 2009 20:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-34552</guid>
		<description>See previous comment:
http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-2/#comment-19582</description>
		<content:encoded><![CDATA[<p>See previous comment:<br />
<a href="http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-2/#comment-19582" rel="nofollow">http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-2/#comment-19582</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-34442</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Sun, 01 Nov 2009 06:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-34442</guid>
		<description>Hey this script works amazing! I was wondering tho, it does save it as a *.zip file, I was wondering if we can change the compression to &quot;best&quot; and have it create a *.7z file instead, is this possible to tune it up like that?

My output is 1.6gb and I wanted to compress it to make it smaller, and create it in a *.7z. Is that possible? Thanks so much!</description>
		<content:encoded><![CDATA[<p>Hey this script works amazing! I was wondering tho, it does save it as a *.zip file, I was wondering if we can change the compression to &#8220;best&#8221; and have it create a *.7z file instead, is this possible to tune it up like that?</p>
<p>My output is 1.6gb and I wanted to compress it to make it smaller, and create it in a *.7z. Is that possible? Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sune</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-33815</link>
		<dc:creator>sune</dc:creator>
		<pubDate>Mon, 19 Oct 2009 10:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-33815</guid>
		<description>im trying to use that script but only does an empty zip file...</description>
		<content:encoded><![CDATA[<p>im trying to use that script but only does an empty zip file&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-32281</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 18 Sep 2009 01:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-32281</guid>
		<description>Thanks for this script Jason.
It seems COPY does not create the destination path for the file. Tried using XCOPY but it prompts since it doesn&#039;t know if it needs to create a file or folder. I pipe the &#039;f&#039; in since we know it is a file. It seems to work but there might be a better way?
COPY /v /y &quot;!Current!&quot; &quot;!Destination!&quot;  ---&gt;  echo &#039;f&#039; &#124; XCOPY /v /y &quot;!Current!&quot; &quot;!Destination!&quot;</description>
		<content:encoded><![CDATA[<p>Thanks for this script Jason.<br />
It seems COPY does not create the destination path for the file. Tried using XCOPY but it prompts since it doesn&#8217;t know if it needs to create a file or folder. I pipe the &#8216;f&#8217; in since we know it is a file. It seems to work but there might be a better way?<br />
COPY /v /y &#8220;!Current!&#8221; &#8220;!Destination!&#8221;  &#8212;&gt;  echo &#8216;f&#8217; | XCOPY /v /y &#8220;!Current!&#8221; &#8220;!Destination!&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pan</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-31997</link>
		<dc:creator>Pan</dc:creator>
		<pubDate>Sat, 12 Sep 2009 13:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-31997</guid>
		<description>I tried your script and it works great for directories however once I try to copy a file or add a file in the list, it shows the message as follows:

The system cannot find the path specified.
        0 file(s) copied.

I tried to debug it and could see that the destination path is showing as follows:

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\backup\C\USB\backup\Test\PHPTest

The same path is for directory copying however it works perfectly but not while copying the single file.

The code which needs review is as follows:

...
FOR /f &quot;skip=1 tokens=*&quot; %%A IN (%filBackupConfig%) DO (
  SET Current=%%~A
  IF NOT EXIST &quot;!Current!&quot; (
    ECHO ERROR! Not found: !Current!
  ) ELSE (
    ECHO Copying: !Current!
    SET Destination=%dirTempBackup%\!Current:~0,1!%%~pnxA
    REM Determine if the entry is a file or directory.
    IF &quot;%%~xA&quot;==&quot;&quot; (
      REM Directory.
      XCOPY &quot;!Current!&quot; &quot;!Destination!&quot; /v /c /i /g /h /q /r /y %swXCopy%
      echo  !Current!
      echo seperator
      echo  !Destination!
      echo dirend
    ) ELSE (
      REM File.
      
      COPY /v /y &quot;!Current!&quot; &quot;!Destination!&quot;
      echo !Current!
      echo seperator
      echo !Destination!
      )
  )
)
...

Any idea?</description>
		<content:encoded><![CDATA[<p>I tried your script and it works great for directories however once I try to copy a file or add a file in the list, it shows the message as follows:</p>
<p>The system cannot find the path specified.<br />
        0 file(s) copied.</p>
<p>I tried to debug it and could see that the destination path is showing as follows:</p>
<p>C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\backup\C\USB\backup\Test\PHPTest</p>
<p>The same path is for directory copying however it works perfectly but not while copying the single file.</p>
<p>The code which needs review is as follows:</p>
<p>&#8230;<br />
FOR /f &#8220;skip=1 tokens=*&#8221; %%A IN (%filBackupConfig%) DO (<br />
  SET Current=%%~A<br />
  IF NOT EXIST &#8220;!Current!&#8221; (<br />
    ECHO ERROR! Not found: !Current!<br />
  ) ELSE (<br />
    ECHO Copying: !Current!<br />
    SET Destination=%dirTempBackup%\!Current:~0,1!%%~pnxA<br />
    REM Determine if the entry is a file or directory.<br />
    IF &#8220;%%~xA&#8221;==&#8221;" (<br />
      REM Directory.<br />
      XCOPY &#8220;!Current!&#8221; &#8220;!Destination!&#8221; /v /c /i /g /h /q /r /y %swXCopy%<br />
      echo  !Current!<br />
      echo seperator<br />
      echo  !Destination!<br />
      echo dirend<br />
    ) ELSE (<br />
      REM File.</p>
<p>      COPY /v /y &#8220;!Current!&#8221; &#8220;!Destination!&#8221;<br />
      echo !Current!<br />
      echo seperator<br />
      echo !Destination!<br />
      )<br />
  )<br />
)<br />
&#8230;</p>
<p>Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-31483</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 01 Sep 2009 14:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-31483</guid>
		<description>How do i get the script to only back up the previous 7 days files. I want it to look at the date modify date</description>
		<content:encoded><![CDATA[<p>How do i get the script to only back up the previous 7 days files. I want it to look at the date modify date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.pcmech.com/article/windows-batch-script-to-backup-data/comment-page-3/#comment-30999</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 24 Aug 2009 22:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pcmech.com/?p=6155#comment-30999</guid>
		<description>Use xcopy /d with no argument to copy all updated files.</description>
		<content:encoded><![CDATA[<p>Use xcopy /d with no argument to copy all updated files.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
