Solved

Sync specific folders to file server on logoff

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
extend monitor issues 6 29
Replication dns zone issue 2 29
Set up secondary Domain Controller 4 72
Upgrade Windows 7 pro to Enterprise 8 52
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
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.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

803 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