Solved

Sync specific folders to file server on logoff

Posted on 2012-03-16
3
803 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

707 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