title: Use Hobocopy to backup .PST's on system (Using exact path)
body: <p>Morning All,</p>
  
  <p>We're currently running some software for our users which is failing to copy their PST's on to our servers, it's too intrusive, requires client side software and configuration and its paid for!</p>
  
  <p>I'm used to free/open source software and love command line batch files compared, as I find them easier to automate and also add to scheduled tasks without worrying about users input.</p>
  
  <p>I have found hobocopy which works great! - but only if you list : source folder, dest folder and then file type... my script searches the C:\ drive, finds PST files and lists the full file path. Hobocopy doesn't seem to handle this.</p>
  
  <p>Below is my script:</p>
  
  <pre><code>@echo off
  
  REM ### COPY HOBOCOPY TO WINDOWS DIR #####
  
  if not exist C:\windows\Hobocopy.exe xcopy \\icao-supp-01\support\hobocopy\hobocopy.exe C:\windows
  
  REM ### SCAN SYSTEM FOR LOCAL PST FILES ####
  
  dir *.pst /s /b  &gt; C:\temp\pst.txt
  
  REM ### RUN HOBOCOPY TO COPY PST FILES ####
  
  For /f %f in (C:\temp\pst.txt) do hobocopy /y %f P:\
  </code></pre>
  
  <p>**HERE IS THE OUTPUT OF C:\TEMP\PST.TXT</p>
  
  <pre><code>C:\Jdeane.pst
  
  C:\Games\IGNORE1.pst
  
  C:\Windows\ModemLogs\fake2.pst**
  </code></pre>
  
  <p>It wont copy the file paths e.g. : 
  <code>hobocopy /y C:\Jdeane.pst P: wont work. However, hobocopy /y C:\ P:\ *.pst</code> would work.</p>
  
  <p>My goal:
  Search the C:\ drive for PST files and then have them backed up on a schedule to the servers.</p>
  
  <p>Thanks in advance!
  (PS. Were running Windows 7 x64 and outlook 2010 if it makes a difference, and the users will NOT save their PST's to our servers).</p>