Solved

ROBOCOPY

Posted on 2006-10-20
7
427 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
Comment Utility
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
Comment Utility
I want to back up the work stations to the server
0
 
LVL 9

Expert Comment

by:SamuraiCrow
Comment Utility
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
Comment Utility
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
Comment Utility
@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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
Learn about cloud computing and its benefits for small business owners.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

9 Experts available now in Live!

Get 1:1 Help Now