Solved

ROBOCOPY

Posted on 2006-10-20
7
430 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

Suggested Solutions

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

864 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now