Solved

Sync specific folders to file server on logoff

Posted on 2012-03-16
3
798 Views
Last Modified: 2012-03-17
Hello

I have 20 users joined to active directory version 2008.  I want some specific folders (ex. c:\my.files ) to automatically be synced with my fileserver (for backup purposes), when my users logoff or shutdown their computers, .

I am thinking to create a batch file which simply xcopy these folders to my fileserver using logoff scripts in group policy.

Is there any other way to do?  What if i want to sync files and not copy all data every time a user logoff/shutdown?

Thanks
0
Comment
Question by:p0wned
[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
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 500 total points
ID: 37731631
robocopy.exe c:\my.files \\fileserver\share\%username%\my.files

put that in a logoff script. Robocopy only copies files that have been modified. This script will not delete files that have been deleted from the source, but it will overwrite files. You should still protect files in case a user Overwrites a document with a blank document and then logs off. The backup copy on the file server will get replaced too. If you use shadow copies on your file server you would be in pretty good shape.
0
 
LVL 29

Expert Comment

by:pwindell
ID: 37733077
Why not just use folder Redirection and be done with it?  That is what it was designed for.

The files just have to be located within folders that folder Redirection is designed to work with (My Documents, Desktop, etc)
0
 
LVL 29

Expert Comment

by:pwindell
ID: 37733183
Sorry,...I should have said Offline Files.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…

726 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