<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Robocopy HELP in Windows Server 2003</title>
    <link>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271097#M5220</link>
    <description>Yes.  you can go both ways in looking for content that you want to sycronize across two shares (usually network and local).&lt;BR /&gt;&lt;BR /&gt;This will probably paste in messy (sorry), but it's a script I use to sync a network to local documents share.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt;@echo off&lt;BR /&gt;rem ..: Generic robocopy syncronization script&lt;BR /&gt;rem ..:---------------------------------------------------------------------------------------------&lt;BR /&gt;rem ..: Notes: Uses CMD variables and robocopy to copy to and from a destination drive&lt;BR /&gt;rem ..: based on the file timestamp.&lt;BR /&gt;rem ..: Author:  Jon Finley&lt;BR /&gt;rem ..: Date: 9-5-2007&lt;BR /&gt;rem ..: Updated: 11-16-2007 jf - Made more generic to be used as a template for future general use.&lt;BR /&gt;rem ..:---------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;for /f "tokens=2,3,4 delims=/ " %%i in ('echo %date%') do (&lt;BR /&gt;set myday=%%j&lt;BR /&gt;set mymonth=%%i&lt;BR /&gt;set myyear=%%k)&lt;BR /&gt;&lt;BR /&gt;set logdate=%myyear%-%mymonth%-%myday%&lt;BR /&gt;set logname=synclog_%logdate%.txt&lt;BR /&gt;&lt;BR /&gt;rem ..: Check for the network drive&lt;BR /&gt;if not exist p:\. net use p: \\itfs1\clas\sols\users\%USERNAME% /persistent:yes&lt;BR /&gt;&lt;BR /&gt;rem ..: Check for the sync folders&lt;BR /&gt;if not exist p:\synclogs\. mkdir p:\synclogs&lt;BR /&gt;rem if not exist p:\syncfolder\. mkdir p:\syncfolder&lt;BR /&gt;&lt;BR /&gt;echo Copying changed files from the Source computer to the Destination drive&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo Copying changed files from the Source computer to the Destination drive &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;&lt;BR /&gt;rem ..: copy from source to dest&lt;BR /&gt;robocopy "C:\Documents and Settings\%USERNAME%\My Documents" "P:\My Documents" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;REM robocopy "D:\" "P:\D-Drive" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;&lt;BR /&gt;echo Copying changed files from the Destination drive back to the local computer&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo Copying changed files from the Destination drive back to the local computer &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;&lt;BR /&gt;rem ..: copy from dest to source (for any newer files)&lt;BR /&gt;robocopy "P:\My Documents" "C:\Documents and Settings\%USERNAME%\My Documents" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;REM robocopy "P:\D-Drive" "D:\" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;&lt;BR /&gt;rem ..:-----------------------------------------------------------&lt;BR /&gt;rem ..: end of syncronization script.&lt;BR /&gt;rem ..:-----------------------------------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Sep 2008 18:06:57 GMT</pubDate>
    <dc:creator>Jon Finley</dc:creator>
    <dc:date>2008-09-19T18:06:57Z</dc:date>
    <item>
      <title>Robocopy HELP</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271096#M5219</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;May I know if Robocopy may do reverse copying as in destination to source instead?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;wannabe</description>
      <pubDate>Wed, 17 Sep 2008 13:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271096#M5219</guid>
      <dc:creator>wann13e</dc:creator>
      <dc:date>2008-09-17T13:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Robocopy HELP</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271097#M5220</link>
      <description>Yes.  you can go both ways in looking for content that you want to sycronize across two shares (usually network and local).&lt;BR /&gt;&lt;BR /&gt;This will probably paste in messy (sorry), but it's a script I use to sync a network to local documents share.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt;@echo off&lt;BR /&gt;rem ..: Generic robocopy syncronization script&lt;BR /&gt;rem ..:---------------------------------------------------------------------------------------------&lt;BR /&gt;rem ..: Notes: Uses CMD variables and robocopy to copy to and from a destination drive&lt;BR /&gt;rem ..: based on the file timestamp.&lt;BR /&gt;rem ..: Author:  Jon Finley&lt;BR /&gt;rem ..: Date: 9-5-2007&lt;BR /&gt;rem ..: Updated: 11-16-2007 jf - Made more generic to be used as a template for future general use.&lt;BR /&gt;rem ..:---------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;for /f "tokens=2,3,4 delims=/ " %%i in ('echo %date%') do (&lt;BR /&gt;set myday=%%j&lt;BR /&gt;set mymonth=%%i&lt;BR /&gt;set myyear=%%k)&lt;BR /&gt;&lt;BR /&gt;set logdate=%myyear%-%mymonth%-%myday%&lt;BR /&gt;set logname=synclog_%logdate%.txt&lt;BR /&gt;&lt;BR /&gt;rem ..: Check for the network drive&lt;BR /&gt;if not exist p:\. net use p: \\itfs1\clas\sols\users\%USERNAME% /persistent:yes&lt;BR /&gt;&lt;BR /&gt;rem ..: Check for the sync folders&lt;BR /&gt;if not exist p:\synclogs\. mkdir p:\synclogs&lt;BR /&gt;rem if not exist p:\syncfolder\. mkdir p:\syncfolder&lt;BR /&gt;&lt;BR /&gt;echo Copying changed files from the Source computer to the Destination drive&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo Copying changed files from the Source computer to the Destination drive &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;&lt;BR /&gt;rem ..: copy from source to dest&lt;BR /&gt;robocopy "C:\Documents and Settings\%USERNAME%\My Documents" "P:\My Documents" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;REM robocopy "D:\" "P:\D-Drive" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;&lt;BR /&gt;echo Copying changed files from the Destination drive back to the local computer&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo Copying changed files from the Destination drive back to the local computer &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;echo ============================================================================ &amp;gt;&amp;gt;p:\synclogs\%logname%&lt;BR /&gt;&lt;BR /&gt;rem ..: copy from dest to source (for any newer files)&lt;BR /&gt;robocopy "P:\My Documents" "C:\Documents and Settings\%USERNAME%\My Documents" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;REM robocopy "P:\D-Drive" "D:\" /e /copy:dat /dcopy:t /xo /xx /r:2 /w:6 /v /ts /fp /log+:p:\synclogs\%logname% /tee&lt;BR /&gt;&lt;BR /&gt;rem ..:-----------------------------------------------------------&lt;BR /&gt;rem ..: end of syncronization script.&lt;BR /&gt;rem ..:-----------------------------------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Sep 2008 18:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271097#M5220</guid>
      <dc:creator>Jon Finley</dc:creator>
      <dc:date>2008-09-19T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Robocopy HELP</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271098#M5221</link>
      <description>Hi Jon,&lt;BR /&gt;&lt;BR /&gt;Thank you for the great help here. I will test out the script and keep you update on the outcome.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;wannabe</description>
      <pubDate>Mon, 22 Sep 2008 00:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271098#M5221</guid>
      <dc:creator>wann13e</dc:creator>
      <dc:date>2008-09-22T00:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Robocopy HELP</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271099#M5222</link>
      <description>Hi Jon,&lt;BR /&gt;&lt;BR /&gt;Thanks for your time and reply.&lt;BR /&gt;&lt;BR /&gt;I'm looking for a script where I will sync files straight from source to destination.&lt;BR /&gt;&lt;BR /&gt;Do you think it's possible for Robocopy to do that?  Where I'm able to sync the file in only one way, from destination to source?  As destination is the prefer source of newer files to maintain to destination.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Han</description>
      <pubDate>Mon, 22 Sep 2008 08:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-help/m-p/4271099#M5222</guid>
      <dc:creator>wann13e</dc:creator>
      <dc:date>2008-09-22T08:04:31Z</dc:date>
    </item>
  </channel>
</rss>

