Don't flame me too hard guys as I am command line-phobic and I am new to this. Basically, I want to setup a test system before rolling out to production. I want to copy the folder structure of the backup area, and move any files contained there that are over 60 days old and are not in the folders and files I have specified. I also want to keep the file attributes regarding security and time stamps etc.
I have scheduled this test script and it ran, but didn't actually move anything. I would greatly appreciate help in finding out where I have gone wrong.
Basically, I have cannibalised various scripts I found on the internet to come out with what is below:
:START
SET robo_path="\\server1\"%RoboCopy%"
SET source_dir="\\server1\tom_temp"
SET dest_dir="\\server2\Backup_Archive"
SET log_fname="\\server2\Backup_Archive\Backup_Logs\Backup_Archive.txt"
SET what_to_copy=/COPY:DAT /MOV /B /MIR
SET exclude_dirs=/XD "banks" "colin temp"
SET exclude_files=/XF /MINAGE:60 *.tmp "vssver.scc"
SET options=/R:1 /W:1 /LOG+:%log_fname% /NFL /NDL /E /XJ
%robo_path% %source_dir% %dest_dir% %what_to_copy% %options% %exclude_dirs% %exclude_files%