Solved

ROBOCOPY

Posted on 2006-10-20
7
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

751 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