Solved

ROBOCOPY

Posted on 2006-10-20
7
433 Views
Last Modified: 2012-06-27
I want to have a log on script that copies the user’s data to a share with out them knowing it every week around 3pm
I also want to make sure the script only runs if they are at their site so I want to make it specific to a certain IP range such as run if 192.168.2.x but don't run if it's 192.168.x.x
I only want to copy over Microsoft Office files and I want them to be incremental back ups. I would like to add this script to a GPO
0
Comment
Question by:rcmtech204
7 Comments
 
LVL 5

Expert Comment

by:modathir
ID: 17776917
I think the easy way to do this is enable sadow copy on the volume where the users data is.
0
 

Author Comment

by:rcmtech204
ID: 17776933
I want to back up the work stations to the server
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17778108
Are you looking at targeting a single directory such as My Documents or do you need to be able to get all Office documents copied off of the machines?
0
 
LVL 8

Expert Comment

by:nitadmin
ID: 17781126
The robocopy command is capable of doing what you describe. It will copy specific files types as you wish and can do incremental and differential backup. You also want it run on specific machiones within a particular subnet. To do this, you will have to do some programming.

Another, thing you could try is to apply the GPO object to the specific O/U which contains the machines which you choose.

Cheers,
NITADMIN
0
 
LVL 14

Accepted Solution

by:
canali earned 500 total points
ID: 17783737
@echo off
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::  this is a simple cmd script with conditional execution based on ip
::  sbexec.cmd
::  subnet exec by canali gastone
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
(ping %computername% -n 2 |find /i "TTL" |find "192.168.2." >nul) && call :_SITE1
(ping %computername% -n 2|find /i "TTL" |find "192.168." >nul)    && call :_SITE2
goto :_END

:_SITE1
   echo  site 1 - subnet 192.168.2.x
   echo  ROBOCOPY  "C:\office\top secret"  "\\scv\reports" /ZB
goto :_EOF

:_SITE2
   echo site 2 - subnet 192.168.x.x
   echo  do nothing
goto :_EOF
:_END
:_EOF
::::::::::::::::end script:::::::::::::::
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question