<?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 create 2 logs in Windows Server 2003</title>
    <link>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477561#M5705</link>
    <description>I think that you can only do one log file.&lt;BR /&gt;&lt;BR /&gt;But, try adding in the /TEE switch.  You "may" be able to then redirect to an additional output file.&lt;BR /&gt;&lt;BR /&gt;Robocopy %SOURCE1%\ %DEST1% /NP /IF *-cd* *-cw* *-cm* *.spf* /MAXAGE:2 /S /ZB /LOG+:spcopylog.txt /TEE &amp;gt;2dayslog.txt&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Aug 2009 21:14:26 GMT</pubDate>
    <dc:creator>Jon Finley</dc:creator>
    <dc:date>2009-08-13T21:14:26Z</dc:date>
    <item>
      <title>Robocopy create 2 logs</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477560#M5704</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to create two log files for each job executed in a Robocopy batchfile each night of the week. One will be appended with each nights progress output using the /LOG+: switch and thus continually grow a full history of backup copies. The other will also produce a log with the same activity but will erase the previous nights content of the file using the /LOG: switch.&lt;BR /&gt;&lt;BR /&gt;So my command line entry looks like this:&lt;BR /&gt;Robocopy %SOURCE1%\ %DEST1% /NP /IF *-cd* *-cw* *-cm* *.spf* /MAXAGE:2 /S /ZB /LOG+:spcopylog.txt /Log:2dayslog.txt&lt;BR /&gt;&lt;BR /&gt;What I get using the syntax above is a fully appended log (which I want) but the second log just has the path to itself as the content.&lt;BR /&gt;&lt;BR /&gt;I want to use vmail to email me the 2dayslog content which it does but as stated the log itself is devoid of the actual work done by Robocopy.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance...&lt;BR /&gt;&lt;BR /&gt;Roger</description>
      <pubDate>Tue, 11 Aug 2009 23:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477560#M5704</guid>
      <dc:creator>Roger Griffiths</dc:creator>
      <dc:date>2009-08-11T23:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Robocopy create 2 logs</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477561#M5705</link>
      <description>I think that you can only do one log file.&lt;BR /&gt;&lt;BR /&gt;But, try adding in the /TEE switch.  You "may" be able to then redirect to an additional output file.&lt;BR /&gt;&lt;BR /&gt;Robocopy %SOURCE1%\ %DEST1% /NP /IF *-cd* *-cw* *-cm* *.spf* /MAXAGE:2 /S /ZB /LOG+:spcopylog.txt /TEE &amp;gt;2dayslog.txt&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Aug 2009 21:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477561#M5705</guid>
      <dc:creator>Jon Finley</dc:creator>
      <dc:date>2009-08-13T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Robocopy create 2 logs</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477562#M5706</link>
      <description>Thanks. I found an alternate way...&lt;BR /&gt;&lt;BR /&gt;Robocopy %SOURCE1%\ %DEST1% /NP /IF *-cd* *-cw* *-cm* *.spf* /MAXAGE:2 /S /ZB /LOG:2daylog.txt&lt;BR /&gt; Robocopy %SOURCE2%\ %DEST2% /NP /IF *-cd* *-cw* *-cm* *.spf* /MAXAGE:2 /S /ZB /LOG+:2daylog.txt&lt;BR /&gt;&lt;BR /&gt;Then...&lt;BR /&gt;&lt;BR /&gt;:: Prepare logs for emailing &lt;BR /&gt;::&lt;BR /&gt; Echo Today's backup report: &amp;gt; spinctail.txt&lt;BR /&gt;::&lt;BR /&gt;:: Add the content for the email header i.e. to, from subject, beginning message to the out going message&lt;BR /&gt;::&lt;BR /&gt; Type Header.txt &amp;gt;&amp;gt; spinctail.txt&lt;BR /&gt;:: &lt;BR /&gt;:: Add the contents of today's backup log to the email message&lt;BR /&gt;::&lt;BR /&gt; Type 2daylog.txt &amp;gt;&amp;gt; spinctail.txt&lt;BR /&gt;::&lt;BR /&gt;:: Use vmail to send the prepared email. Format must include Executable - Filename - mail server - recipient email - sender email&lt;BR /&gt;::&lt;BR /&gt; VMAILER.EXE spinctail.txt myserver.mydomainname.co.nz itadministrators@mydomainname.co.nz SPBackup@mydomainname.co.nz &lt;BR /&gt;::&lt;BR /&gt;:: Append the master log (spcopylog.txt) with today's backup log&lt;BR /&gt;::&lt;BR /&gt; TYPE 2daylog.txt &amp;gt;&amp;gt; spcopylog.txt&lt;BR /&gt;&lt;BR /&gt;...so the master log being spcopylog.txt is appended each day from the 2daylog.txt capture. Works great too...&lt;BR /&gt;&lt;BR /&gt;Thanks for responding.</description>
      <pubDate>Thu, 13 Aug 2009 22:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477562#M5706</guid>
      <dc:creator>Roger Griffiths</dc:creator>
      <dc:date>2009-08-13T22:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Robocopy create 2 logs</title>
      <link>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477563#M5707</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just so you know.&lt;BR /&gt;Chances are you can't do 2 different logs with Robocopy by itself.&lt;BR /&gt;I know you're using Robocopy command line tool, but look at the Robocopy GUI 3.1.&lt;BR /&gt;There's only 1 field for log path, regardless of whether you use /LOG: or /LOG+:&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 27 Aug 2009 06:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/robocopy-create-2-logs/m-p/4477563#M5707</guid>
      <dc:creator>Edgar Zapata</dc:creator>
      <dc:date>2009-08-27T06:47:07Z</dc:date>
    </item>
  </channel>
</rss>

