Solved

Sync specific folders to file server on logoff

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 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