In my office I have an external hard drive connected to my router. There are 4 computers in my office all hard wired to the ro

SkyyAC

Reputable
Apr 18, 2014
1
0
4,510
In my office I have an external hard drive connected to my router. There are 4 computers in my office all hard wired to the router. I am trying to write a batch file that will: backup up all files and email initially, then only back up newer information. I don't know what type of files I should exclude. I have been told robocopy is the way to go, but i have never written a batch file before. I was told it was an alternative to an NAS server. Can anyone show me a mock up of how the batch file should look? And maybe some of the steps I need to do, from start to finish, to input the batch file? Any help would be greatly appreciated, thankyou!
 
Solution
I'm not sure what you mean by "all files". Do R-15you mean like a complete backup or just the stuff in their My Documents folder?

Heres is the guide I recommend to new robocopy users.
http://burpee.smccme.edu/studenthowtos/robocopy.htm

your batch file might look something like this
Code:
REM 1: Mirroring Users Documents
Robocopy c:\users\{insert username here}\documents \\router\share\{insert username here}\Documents /MIR /W:20 /R:15

REM 2: Copy users email file
Robocopy c:\users\{insert username here}\AppData\Local\Microsoft\Outlook \\router\share\{insert username here}\Outlook\ *.pst /W:20 /R:15 /purge

The first thing you want to do is setup a test pc with a test user. refine your script as you figure out what to backup. them...

popatim

Titan
Moderator
I'm not sure what you mean by "all files". Do R-15you mean like a complete backup or just the stuff in their My Documents folder?

Heres is the guide I recommend to new robocopy users.
http://burpee.smccme.edu/studenthowtos/robocopy.htm

your batch file might look something like this
Code:
REM 1: Mirroring Users Documents
Robocopy c:\users\{insert username here}\documents \\router\share\{insert username here}\Documents /MIR /W:20 /R:15

REM 2: Copy users email file
Robocopy c:\users\{insert username here}\AppData\Local\Microsoft\Outlook \\router\share\{insert username here}\Outlook\ *.pst /W:20 /R:15 /purge

The first thing you want to do is setup a test pc with a test user. refine your script as you figure out what to backup. them make sure it restores ok as sometimes permissions & timestamps don't copy exactly. Once you are sure you have everything perfect, then you make it production for everyone.
 
Solution