Morning All,
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!
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.
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.
Below is my script:
@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 > C:\temp\pst.txt
REM ### RUN HOBOCOPY TO COPY PST FILES ####
For /f %f in (C:\temp\pst.txt) do hobocopy /y %f P:\
**HERE IS THE OUTPUT OF C:\TEMP\PST.TXT
C:\Jdeane.pst
C:\Games\IGNORE1.pst
C:\Windows\ModemLogs\fake2.pst**
It wont copy the file paths e.g. :
hobocopy /y C:\Jdeane.pst P: wont work. However, hobocopy /y C:\ P:\ *.pst
would work.
My goal: Search the C:\ drive for PST files and then have them backed up on a schedule to the servers.
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).