Hey guys (and grils)
So I just got a new job as an IT – Assistant, I am incharge of maintaing some backups for this office. They were using the following robo copy commands to backup all the My Documents on all the systems in the office (about 80 machines in all). I can’t for the life of me figure out what this loop is doing…
G:
cd \Eureka\MyDocBack
for /D %%f in (*) do c:\batch\Scheduled\Robocopy "\\%%f\c$\my documents" "G:\Eureka\MyDocBack\%%f" /XD Laptops /XF *.m4a *.mp3 *.wma *.rmx /E /R:1 /W:1 /Log+:G:\Eureka\RoboLogs\%%f_Log.log /NP /TEE
c:\batch\Scheduled\Robocopy "\\kpryor\d$\my documents" "G:\Eureka\MyDocBack\kpryor" /E /R:1 /W:1 /Log+:G:\Eureka\RoboLogs\kpryor_Log.log /NP /TEE
c:\batch\Scheduled\Robocopy "\\viper\e$\outlook" "G:\Eureka\MyDocBack\Viper-!\outlook" apw.pst archive.pst /E /R:1 /W:1 /NP /Log+:G:\Eureka\RoboLogs\viper_Log.log /NP /TEE
I understand that its putting the data on the G: drive and in the \Eurkea\MyDocBack folder.. what I don’t understand is the for part.. any help..
Short story short.. whenever I rollout a new machine with the UserName(Date) Example¨Harri1010 it will not pickup the new machine, thus not getting the backup..
Where is this getting allt he comp names??
Thanks
-Harri